Upload folder using huggingface_hub
Browse files- Dockerfile +1 -1
- app.py +1 -2
Dockerfile
CHANGED
|
@@ -11,6 +11,6 @@ COPY . .
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
# Define the command to run the Streamlit app on port 8501 and make it accessible externally
|
| 14 |
-
CMD ["streamlit", "run", "app.py", "--server.port=
|
| 15 |
|
| 16 |
# NOTE: Disable XSRF protection for easier external access in order to make batch predictions
|
|
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
# Define the command to run the Streamlit app on port 8501 and make it accessible externally
|
| 14 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
| 15 |
|
| 16 |
# NOTE: Disable XSRF protection for easier external access in order to make batch predictions
|
app.py
CHANGED
|
@@ -42,8 +42,7 @@ if st.button("Predict"):
|
|
| 42 |
|
| 43 |
response = requests.post(
|
| 44 |
"https://Georgek17-PneumoniaPredictor.hf.space/v1/Pneumonia_prediction",
|
| 45 |
-
files=files
|
| 46 |
-
)
|
| 47 |
|
| 48 |
if response.status_code == 200:
|
| 49 |
result = response.json()
|
|
|
|
| 42 |
|
| 43 |
response = requests.post(
|
| 44 |
"https://Georgek17-PneumoniaPredictor.hf.space/v1/Pneumonia_prediction",
|
| 45 |
+
files=files)
|
|
|
|
| 46 |
|
| 47 |
if response.status_code == 200:
|
| 48 |
result = response.json()
|