Spaces:
Running
Running
Vitomir Jovanović
commited on
Commit
•
61c8983
1
Parent(s):
f98c9e7
Debugging Streamlit
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import requests
|
|
6 |
st.title("Top K Search with Vector DataBase")
|
7 |
|
8 |
# FastAPI endpoint URL
|
|
|
9 |
url = "https://huggingface.co/spaces/Vitomir/search_engine"
|
10 |
|
11 |
# Input fields in Streamlit
|
|
|
6 |
st.title("Top K Search with Vector DataBase")
|
7 |
|
8 |
# FastAPI endpoint URL
|
9 |
+
# url = "http://localhost:8084/search/"
|
10 |
url = "https://huggingface.co/spaces/Vitomir/search_engine"
|
11 |
|
12 |
# Input fields in Streamlit
|
main.py
CHANGED
@@ -59,4 +59,4 @@ if __name__ == "__main__":
|
|
59 |
# Search_SERVER_HOST_IP = socket.gethostbyname(socket.gethostname())
|
60 |
SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
|
61 |
SERVER_PORT = int(8084)
|
62 |
-
uvicorn.run(app, host=
|
|
|
59 |
# Search_SERVER_HOST_IP = socket.gethostbyname(socket.gethostname())
|
60 |
SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
|
61 |
SERVER_PORT = int(8084)
|
62 |
+
uvicorn.run(app, host="0.0.0.0", port=SERVER_PORT)
|