Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def process_image(image):
|
|
152 |
|
153 |
if 'data' in result and len(result['data']) > 0:
|
154 |
first_result = result['data'][0]
|
155 |
-
if '
|
156 |
confidence = first_result['is_ai_generated']
|
157 |
sources = first_result.get('possible_sources', {})
|
158 |
|
@@ -197,7 +197,8 @@ def create_demo():
|
|
197 |
|
198 |
# Create and launch the application
|
199 |
if __name__ == "__main__":
|
200 |
-
demo
|
|
|
201 |
demo.launch(
|
202 |
show_api=False,
|
203 |
show_error=True,
|
|
|
152 |
|
153 |
if 'data' in result and len(result['data']) > 0:
|
154 |
first_result = result['data'][0]
|
155 |
+
if 'is_ai_generated' in first_result:
|
156 |
confidence = first_result['is_ai_generated']
|
157 |
sources = first_result.get('possible_sources', {})
|
158 |
|
|
|
197 |
|
198 |
# Create and launch the application
|
199 |
if __name__ == "__main__":
|
200 |
+
demo
|
201 |
+
= create_demo()
|
202 |
demo.launch(
|
203 |
show_api=False,
|
204 |
show_error=True,
|