Vitomir Jovanović commited on
Commit
43e9781
1 Parent(s): 0f5e8d0

Setting Streamlit app

Browse files
Files changed (3) hide show
  1. Procfile.yaml +1 -0
  2. app.py +1 -1
  3. requirements.txt +0 -0
Procfile.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ web: gunicorn -w 1 -k uvicorn.workers.UvicornWorker main.py:app --bind 0.0.0.0:8000 & streamlit run app.py --server.port 7860
app.py CHANGED
@@ -6,7 +6,7 @@ import requests
6
  st.title("Top K Search with Vector DataBase")
7
 
8
  # FastAPI endpoint URL
9
- url = "http://127.0.0.1:8000/search/"
10
 
11
  # Input fields in Streamlit
12
  id = st.text_input("Enter ID:", value="1")
 
6
  st.title("Top K Search with Vector DataBase")
7
 
8
  # FastAPI endpoint URL
9
+ url = "http://localhost:8000/search/"
10
 
11
  # Input fields in Streamlit
12
  id = st.text_input("Enter ID:", value="1")
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ