Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def detect(image, confidence_threshold=0.7, detailed_analysis=False):
|
|
| 112 |
- **Analysis Threshold**: {confidence_threshold * 100:.0f}%
|
| 113 |
|
| 114 |
{"### Detailed Feature Analysis" if detailed_analysis else ""}
|
| 115 |
-
{"".join([f"
|
| 116 |
|
| 117 |
---
|
| 118 |
*Analysis timestamp: {np.datetime64('now')}*
|
|
@@ -266,5 +266,4 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 266 |
|
| 267 |
# Launch the application
|
| 268 |
if __name__ == "__main__":
|
| 269 |
-
demo.launch(debug=True)
|
| 270 |
-
|
|
|
|
| 112 |
- **Analysis Threshold**: {confidence_threshold * 100:.0f}%
|
| 113 |
|
| 114 |
{"### Detailed Feature Analysis" if detailed_analysis else ""}
|
| 115 |
+
{"".join([f"\\n- **{k}**: {v:.1f}% Authenticity" for k, v in feature_analysis.items()]) if detailed_analysis else ""}
|
| 116 |
|
| 117 |
---
|
| 118 |
*Analysis timestamp: {np.datetime64('now')}*
|
|
|
|
| 266 |
|
| 267 |
# Launch the application
|
| 268 |
if __name__ == "__main__":
|
| 269 |
+
demo.launch(debug=True)
|
|
|