Commit
·
d91be70
1
Parent(s):
7065600
fix some bugs
Browse files
README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
-
---
|
| 2 |
title: Advanced Image Processing Suite
|
| 3 |
emoji: 🎨
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
---
|
| 11 |
# Image Processing Suite
|
| 12 |
|
| 13 |
This is a production-ready, modular, and extensible image processing application with AI-powered features.
|
|
|
|
|
|
|
| 1 |
title: Advanced Image Processing Suite
|
| 2 |
emoji: 🎨
|
| 3 |
colorFrom: indigo
|
| 4 |
colorTo: purple
|
| 5 |
sdk: gradio
|
| 6 |
+
sdk_version: "4.0.0"
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
|
|
|
| 9 |
# Image Processing Suite
|
| 10 |
|
| 11 |
This is a production-ready, modular, and extensible image processing application with AI-powered features.
|
app.py
CHANGED
|
@@ -529,11 +529,16 @@ with gr.Blocks(css=custom_css, title="🎨 Advanced Image Processing Suite", the
|
|
| 529 |
|
| 530 |
# Launch configuration
|
| 531 |
if __name__ == "__main__":
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
|
| 530 |
# Launch configuration
|
| 531 |
if __name__ == "__main__":
|
| 532 |
+
# For Hugging Face Spaces, do not set server_name or server_port
|
| 533 |
+
# Use environment variables or defaults for other options
|
| 534 |
+
launch_kwargs = {}
|
| 535 |
+
# Optionally allow share, favicon_path, ssl_verify, show_api to be set via env
|
| 536 |
+
if os.environ.get("GRADIO_SHARE", "false").lower() == "true":
|
| 537 |
+
launch_kwargs["share"] = True
|
| 538 |
+
if os.environ.get("GRADIO_FAVICON_PATH"):
|
| 539 |
+
launch_kwargs["favicon_path"] = os.environ["GRADIO_FAVICON_PATH"]
|
| 540 |
+
if os.environ.get("GRADIO_SSL_VERIFY", "false").lower() == "true":
|
| 541 |
+
launch_kwargs["ssl_verify"] = True
|
| 542 |
+
if os.environ.get("GRADIO_SHOW_API", "false").lower() == "true":
|
| 543 |
+
launch_kwargs["show_api"] = True
|
| 544 |
+
demo.launch(**launch_kwargs)
|