amitlals
commited on
Commit
·
71d98bc
1
Parent(s):
07950ff
Update to Gradio 5.6.0 for stability
Browse files- Dockerfile +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
|
| 29 |
-
RUN pip install --no-cache-dir "gradio==
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
)
|