Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -182,7 +182,8 @@ def create_demo():
|
|
182 |
fn=process_image,
|
183 |
inputs=gr.Image(type="pil", label="Upload Image"),
|
184 |
outputs=[
|
185 |
-
gr.Image(type="pil", label="Analyzed Image"
|
|
|
186 |
gr.Textbox(label="Analysis Results", lines=10)
|
187 |
],
|
188 |
title="AI Image Detector",
|
@@ -198,8 +199,7 @@ def create_demo():
|
|
198 |
|
199 |
# Create and launch the application
|
200 |
if __name__ == "__main__":
|
201 |
-
demo
|
202 |
-
= create_demo()
|
203 |
demo.launch(
|
204 |
show_api=False,
|
205 |
show_error=False,
|
|
|
182 |
fn=process_image,
|
183 |
inputs=gr.Image(type="pil", label="Upload Image"),
|
184 |
outputs=[
|
185 |
+
gr.Image(type="pil", label="Analyzed Image"
|
186 |
+
),
|
187 |
gr.Textbox(label="Analysis Results", lines=10)
|
188 |
],
|
189 |
title="AI Image Detector",
|
|
|
199 |
|
200 |
# Create and launch the application
|
201 |
if __name__ == "__main__":
|
202 |
+
demo= create_demo()
|
|
|
203 |
demo.launch(
|
204 |
show_api=False,
|
205 |
show_error=False,
|