ofermend commited on
Commit
991b668
·
1 Parent(s): b65033f
Files changed (4) hide show
  1. Dockerfile +3 -1
  2. app.py +3 -0
  3. requirements.txt +3 -3
  4. st_app.py +1 -4
Dockerfile CHANGED
@@ -4,7 +4,9 @@ WORKDIR /app
4
 
5
  COPY ./requirements.txt /app/requirements.txt
6
 
7
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
 
 
8
 
9
  # User
10
  RUN useradd -m -u 1000 user
 
4
 
5
  COPY ./requirements.txt /app/requirements.txt
6
 
7
+ RUN pip3 install --no-cache-dir --upgrade pip
8
+ RUN pip3 install --no-cache-dir wheel setuptools build
9
+ RUN pip3 install --no-cache-dir --use-pep517 -r /app/requirements.txt
10
 
11
  # User
12
  RUN useradd -m -u 1000 user
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  import streamlit as st
 
3
  import uuid
4
 
5
  from st_app import launch_bot
@@ -7,6 +8,8 @@ from st_app import launch_bot
7
  import nest_asyncio
8
  import asyncio
9
 
 
 
10
  import sqlite3
11
  from datasets import load_dataset
12
 
 
1
  import os
2
  import streamlit as st
3
+ import torch
4
  import uuid
5
 
6
  from st_app import launch_bot
 
8
  import nest_asyncio
9
  import asyncio
10
 
11
+ torch.classes.__path__ = []
12
+
13
  import sqlite3
14
  from datasets import load_dataset
15
 
requirements.txt CHANGED
@@ -1,10 +1,10 @@
1
  omegaconf==2.3.0
2
  python-dotenv==1.0.1
3
- streamlit==1.41.1
4
- streamlit_pills==0.3.0
5
  streamlit-feedback==0.1.3
6
  langdetect==1.0.9
7
  langcodes==3.4.0
8
  datasets==2.19.2
9
  uuid==1.30
10
- vectara-agentic==0.2.5
 
 
1
  omegaconf==2.3.0
2
  python-dotenv==1.0.1
3
+ streamlit==1.43.2
 
4
  streamlit-feedback==0.1.3
5
  langdetect==1.0.9
6
  langcodes==3.4.0
7
  datasets==2.19.2
8
  uuid==1.30
9
+ vectara-agentic==0.2.9
10
+ torch==2.6.0
st_app.py CHANGED
@@ -1,11 +1,8 @@
1
  from PIL import Image
2
  import sys
3
  import re
4
- import itertools
5
- import asyncio
6
 
7
  import streamlit as st
8
- from streamlit_pills import pills
9
  from streamlit_feedback import streamlit_feedback
10
 
11
  from utils import thumbs_feedback, escape_dollars_outside_latex, send_amplitude_data
@@ -17,7 +14,7 @@ initial_prompt = "How can I help you today?"
17
 
18
  def show_example_questions():
19
  if len(st.session_state.example_messages) > 0 and st.session_state.first_turn:
20
- selected_example = pills("Queries to Try:", st.session_state.example_messages, index=None)
21
  if selected_example:
22
  st.session_state.ex_prompt = selected_example
23
  st.session_state.first_turn = False
 
1
  from PIL import Image
2
  import sys
3
  import re
 
 
4
 
5
  import streamlit as st
 
6
  from streamlit_feedback import streamlit_feedback
7
 
8
  from utils import thumbs_feedback, escape_dollars_outside_latex, send_amplitude_data
 
14
 
15
  def show_example_questions():
16
  if len(st.session_state.example_messages) > 0 and st.session_state.first_turn:
17
+ selected_example = st.pills("Queries to Try:", st.session_state.example_messages, default=None)
18
  if selected_example:
19
  st.session_state.ex_prompt = selected_example
20
  st.session_state.first_turn = False