-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try transitioning to HF Docker space!
- Loading branch information
Showing
4 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM deepset/haystack:base-cpu-v1.23.0 | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
# copy only the application files in /app | ||
# Streamlit does not allow running an app from the root directory | ||
COPY Rock_fact_checker.py app/ | ||
COPY pages app/pages | ||
COPY app_utils app/app_utils | ||
COPY data app/data | ||
|
||
WORKDIR app | ||
|
||
EXPOSE 8501 | ||
|
||
ENTRYPOINT ["streamlit", "run", "Rock_fact_checker.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
farm-haystack[faiss,inference]==1.23.0 | ||
# we now use the Haystack Docker image, so the following line is not needed anymore | ||
# farm-haystack[faiss,inference]==1.23.0 | ||
|
||
haystack-entailment-checker | ||
plotly==5.14.1 | ||
pydantic<2 | ||
|
||
# commented to not interfere with streamlit SDK in HF spces | ||
# uncomment for local installation | ||
# streamlit==1.19.0 | ||
streamlit==1.19.0 | ||
|
||
altair<5 |