Dheeraj-13 commited on
Commit
562dec3
·
1 Parent(s): 102f416

Pin Gradio/Pydantic and fix launch config

Browse files
Files changed (2) hide show
  1. apps/web/app.py +2 -1
  2. requirements.txt +3 -0
apps/web/app.py CHANGED
@@ -154,4 +154,5 @@ with gr.Blocks(title="RAG Assistant") as demo:
154
  ingest_btn.click(admin_ingest, inputs=[file_upload], outputs=[status_box])
155
 
156
  if __name__ == "__main__":
157
- demo.queue().launch()
 
 
154
  ingest_btn.click(admin_ingest, inputs=[file_upload], outputs=[status_box])
155
 
156
  if __name__ == "__main__":
157
+ # specific server_name needed for Docker/Spaces
158
+ demo.queue().launch(server_name="0.0.0.0", ssr_mode=False)
requirements.txt CHANGED
@@ -15,3 +15,6 @@ pandas
15
  networkx<3.5
16
  # Add other necessary root deps if missed, but this covers 99% of RAG needs.
17
  # Allowing pip to resolve versions avoids Py3.10 vs 3.11 conflicts.
 
 
 
 
15
  networkx<3.5
16
  # Add other necessary root deps if missed, but this covers 99% of RAG needs.
17
  # Allowing pip to resolve versions avoids Py3.10 vs 3.11 conflicts.
18
+ # Explicitly pinning to avoid Spaces/Gradio conflicts
19
+ gradio==4.44.1
20
+ pydantic>=2.0,<3.0