Spaces:
Sleeping
Sleeping
Fnu Mahnoor commited on
Commit ·
8b2d877
1
Parent(s): 7cc7815
Fix app
Browse files
app.py
CHANGED
|
@@ -133,13 +133,11 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
| 133 |
"<div style='text-align:center;color:#666;font-size:0.8em;'>Powered by ContextMap Engine</div>"
|
| 134 |
)
|
| 135 |
|
| 136 |
-
# 🚨 CRITICAL FOR GRADIO 4
|
| 137 |
-
demo.queue(concurrency_count=1)
|
| 138 |
-
|
| 139 |
if __name__ == "__main__":
|
| 140 |
demo.launch(
|
| 141 |
server_name="0.0.0.0",
|
| 142 |
server_port=7860,
|
| 143 |
share=True, # HF Spaces requirement
|
| 144 |
show_api=False, # UI only (schema still built internally)
|
|
|
|
| 145 |
)
|
|
|
|
| 133 |
"<div style='text-align:center;color:#666;font-size:0.8em;'>Powered by ContextMap Engine</div>"
|
| 134 |
)
|
| 135 |
|
|
|
|
|
|
|
|
|
|
| 136 |
if __name__ == "__main__":
|
| 137 |
demo.launch(
|
| 138 |
server_name="0.0.0.0",
|
| 139 |
server_port=7860,
|
| 140 |
share=True, # HF Spaces requirement
|
| 141 |
show_api=False, # UI only (schema still built internally)
|
| 142 |
+
max_threads=1, # ✅ Gradio 4–safe replacement
|
| 143 |
)
|