Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
# payload = {
|
24 |
# "input": [f"data:image/png;base64,{image_b64}"]
|
25 |
# }
|
|
|
26 |
# headers = {
|
27 |
# "Content-Type": "application/json",
|
28 |
# "Authorization": header_auth,
|
@@ -188,13 +189,15 @@ def create_demo():
|
|
188 |
gr.Markdown(label=" ## Analysis Results")
|
189 |
],
|
190 |
title="AI Image Detector",
|
|
|
191 |
description="Upload an image to check if it's AI-generated",
|
192 |
article="""
|
193 |
### How to use:
|
194 |
1. Upload an image (PNG, JPG, or JPEG)
|
195 |
2. Click the 'Submit' button
|
196 |
3. Get a detailed analysis of whether the image is AI-generated alongside the Model that might be used in generation.
|
197 |
-
"""
|
|
|
198 |
)
|
199 |
return demo
|
200 |
|
@@ -202,10 +205,11 @@ def create_demo():
|
|
202 |
if __name__ == "__main__":
|
203 |
demo= create_demo()
|
204 |
demo.launch(
|
|
|
205 |
show_api=False,
|
206 |
show_error=False,
|
207 |
share=False,
|
208 |
-
quiet=
|
209 |
|
210 |
|
211 |
)
|
|
|
23 |
# payload = {
|
24 |
# "input": [f"data:image/png;base64,{image_b64}"]
|
25 |
# }
|
26 |
+
|
27 |
# headers = {
|
28 |
# "Content-Type": "application/json",
|
29 |
# "Authorization": header_auth,
|
|
|
189 |
gr.Markdown(label=" ## Analysis Results")
|
190 |
],
|
191 |
title="AI Image Detector",
|
192 |
+
|
193 |
description="Upload an image to check if it's AI-generated",
|
194 |
article="""
|
195 |
### How to use:
|
196 |
1. Upload an image (PNG, JPG, or JPEG)
|
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 |
|
|
|
205 |
if __name__ == "__main__":
|
206 |
demo= create_demo()
|
207 |
demo.launch(
|
208 |
+
show_footer=False,
|
209 |
show_api=False,
|
210 |
show_error=False,
|
211 |
share=False,
|
212 |
+
quiet=True
|
213 |
|
214 |
|
215 |
)
|