Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,8 @@ def process_image(image):
|
|
169 |
.items(), key=lambda x: x[1], reverse=True)[:3]
|
170 |
for source, prob in sorted_sources:
|
171 |
if prob > 0.01:
|
172 |
-
result_message += f"- {source}: {prob
|
|
|
173 |
|
174 |
return image, result_message
|
175 |
|
@@ -197,7 +198,7 @@ def create_demo():
|
|
197 |
2. Click the 'Submit' button
|
198 |
3. Get a detailed analysis of whether the image is AI-generated alongside the Model that might be used in generation.
|
199 |
""",
|
200 |
-
css=".footer {display: none;}
|
201 |
)
|
202 |
return demo
|
203 |
|
|
|
169 |
.items(), key=lambda x: x[1], reverse=True)[:3]
|
170 |
for source, prob in sorted_sources:
|
171 |
if prob > 0.01:
|
172 |
+
result_message += f"- {source}: {prob
|
173 |
+
:.1%}\n"
|
174 |
|
175 |
return image, result_message
|
176 |
|
|
|
198 |
2. Click the 'Submit' button
|
199 |
3. Get a detailed analysis of whether the image is AI-generated alongside the Model that might be used in generation.
|
200 |
""",
|
201 |
+
css=".footer {display: none;}"
|
202 |
)
|
203 |
return demo
|
204 |
|