amitlals
commited on
Commit
·
0c64fbb
1
Parent(s):
6c3de67
Fix huggingface_hub version conflict with Gradio
Browse files- Dockerfile +5 -4
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -25,11 +25,12 @@ COPY requirements.txt .
|
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 26 |
pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
-
#
|
| 29 |
-
|
|
|
|
| 30 |
|
| 31 |
-
#
|
| 32 |
-
RUN pip install --no-cache-dir --
|
| 33 |
|
| 34 |
# Copy application code
|
| 35 |
COPY . .
|
|
|
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 26 |
pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
+
# Force compatible versions of gradio and huggingface_hub BEFORE sap-rpt-oss
|
| 29 |
+
# gradio 4.44.1 requires huggingface_hub<0.25 (HfFolder was removed in 0.25+)
|
| 30 |
+
RUN pip install --no-cache-dir "huggingface_hub>=0.23.0,<0.25.0" "gradio==4.44.1"
|
| 31 |
|
| 32 |
+
# Install SAP-RPT-1-OSS from GitHub (after gradio to avoid version conflicts)
|
| 33 |
+
RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss
|
| 34 |
|
| 35 |
# Copy application code
|
| 36 |
COPY . .
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
pandas>=2.0.0
|
| 2 |
numpy>=1.24.0
|
| 3 |
git+https://github.com/SAP-samples/sap-rpt-1-oss
|
| 4 |
-
huggingface_hub>=0.25.0
|
| 5 |
plotly>=5.17.0
|
| 6 |
requests>=2.31.0
|
| 7 |
python-dotenv>=1.0.0
|
|
|
|
| 1 |
pandas>=2.0.0
|
| 2 |
numpy>=1.24.0
|
| 3 |
git+https://github.com/SAP-samples/sap-rpt-1-oss
|
| 4 |
+
huggingface_hub>=0.23.0,<0.25.0
|
| 5 |
plotly>=5.17.0
|
| 6 |
requests>=2.31.0
|
| 7 |
python-dotenv>=1.0.0
|