Commit
·
2964afb
1
Parent(s):
8e3405b
Update app.py to optimize launch settings for Hugging Face Spaces, enabling request queue handling and clarifying comments. Adjust README.md to reflect the updated Gradio SDK version.
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 📊
|
|
4 |
colorFrom: gray
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.19.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
app.py
CHANGED
@@ -331,10 +331,11 @@ with gr.Blocks(title="CRM: Single Image to 3D") as demo:
|
|
331 |
)
|
332 |
|
333 |
if __name__ == "__main__":
|
334 |
-
# Launch with
|
335 |
demo.queue().launch(
|
336 |
server_name="0.0.0.0",
|
337 |
server_port=7860,
|
338 |
-
share=False, #
|
339 |
-
show_api=False # Disable API
|
|
|
340 |
)
|
|
|
331 |
)
|
332 |
|
333 |
if __name__ == "__main__":
|
334 |
+
# Launch with settings optimized for Hugging Face Spaces
|
335 |
demo.queue().launch(
|
336 |
server_name="0.0.0.0",
|
337 |
server_port=7860,
|
338 |
+
share=False, # Not needed on HF Spaces
|
339 |
+
show_api=False, # Disable API schema generation to avoid the error
|
340 |
+
enable_queue=True # Enable queue for better request handling
|
341 |
)
|