amitlals commited on
Commit
71d98bc
·
1 Parent(s): 07950ff

Update to Gradio 5.6.0 for stability

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app_gradio.py +6 -1
Dockerfile CHANGED
@@ -25,8 +25,8 @@ COPY requirements.txt .
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
- # Install compatible gradio and huggingface_hub versions together
29
- RUN pip install --no-cache-dir "gradio==4.44.1" "huggingface_hub==0.24.7"
30
 
31
  # Install SAP-RPT-1-OSS from GitHub (with --no-deps to avoid conflicts)
32
  RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss || echo "SAP-RPT-1-OSS installation skipped"
 
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Install compatible gradio version (5.x series is stable)
29
+ RUN pip install --no-cache-dir "gradio==5.6.0"
30
 
31
  # Install SAP-RPT-1-OSS from GitHub (with --no-deps to avoid conflicts)
32
  RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss || echo "SAP-RPT-1-OSS installation skipped"
app_gradio.py CHANGED
@@ -1416,4 +1416,9 @@ if __name__ == "__main__":
1416
  server_port = int(os.environ.get("GRADIO_SERVER_PORT", 7862))
1417
 
1418
  # Launch the app
1419
- app.launch(share=False, server_name=server_name, server_port=server_port, quiet=False)
 
 
 
 
 
 
1416
  server_port = int(os.environ.get("GRADIO_SERVER_PORT", 7862))
1417
 
1418
  # Launch the app
1419
+ app.launch(
1420
+ server_name=server_name,
1421
+ server_port=server_port,
1422
+ share=False,
1423
+ show_error=True
1424
+ )