ruslanmv commited on
Commit
eb597b6
Β·
2 Parent(s): 9b8e775 2cd7129

Merge branch 'hf'

Browse files
hf/Dockerfile β†’ Dockerfile RENAMED
@@ -5,10 +5,14 @@ FROM python:3.10-slim
5
  WORKDIR /app
6
 
7
  # Copy the current directory contents into the container at /app
8
- COPY . /app
 
 
 
9
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
 
12
 
13
  # Expose port 8501 for Streamlit
14
  EXPOSE 8501
@@ -17,4 +21,4 @@ EXPOSE 8501
17
  RUN chmod +x run.py
18
 
19
  # Run the application
20
- ENTRYPOINT ["streamlit", "run", "run.py"]
 
5
  WORKDIR /app
6
 
7
  # Copy the current directory contents into the container at /app
8
+ COPY app.py /app/app.py
9
+ COPY webchat.py /app/webchat.py
10
+ COPY .streamlit/config.toml /app/.streamlit/config.toml
11
+ COPY requirements.txt /app/requirements.txt
12
 
13
  # Install any needed packages specified in requirements.txt
14
  RUN pip install --no-cache-dir -r requirements.txt
15
+ RUN python -m spacy download en_core_web_md
16
 
17
  # Expose port 8501 for Streamlit
18
  EXPOSE 8501
 
21
  RUN chmod +x run.py
22
 
23
  # Run the application
24
+ ENTRYPOINT ["streamlit", "run", "app.py"]
README.md CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  ## How to Chat with a Website Using WatsonX
2
 
3
  Hello everyone! Today, we're going to create an exciting web app that allows us to chat with any website using Watsonx.ai.
 
1
+ ---
2
+ title: WatsonX WebChat
3
+ emoji: πŸš€
4
+ colorFrom: pink
5
+ colorTo: gray
6
+ sdk: docker
7
+ pinned: false
8
+ ---
9
  ## How to Chat with a Website Using WatsonX
10
 
11
  Hello everyone! Today, we're going to create an exciting web app that allows us to chat with any website using Watsonx.ai.
hf/requirements.txt DELETED
@@ -1,8 +0,0 @@
1
- streamlit
2
- requests
3
- beautifulsoup4
4
- spacy
5
- sentence-transformers
6
- chromadb
7
- ibm-watson-machine-learning
8
- python-dotenv
 
 
 
 
 
 
 
 
 
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ streamlit==1.35.0
2
+ requests==2.32.2
3
+ beautifulsoup4==4.12.3
4
+ en-core-web-md @ https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.7.1/en_core_web_md-3.7.1-py3-none-any.whl#sha256=6a0f857a2b4d219c6fa17d455f82430b365bf53171a2d919b9376e5dc9be032e
5
+ spacy==3.7.4
6
+ sentence-transformers==2.7.0
7
+ chromadb==0.5.0
8
+ ibm-watson-machine-learning
9
+ python-dotenv==1.0.1