Spaces:
Sleeping
Sleeping
alexpantex
commited on
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ api_thread = threading.Thread(target=start_api_server)
|
|
8 |
api_thread.start()
|
9 |
|
10 |
# Use localhost as FastAPI and Streamlit run in the same environment on Spaces
|
11 |
-
API_PORT = os.getenv("PORT", "
|
12 |
API_URL = f"http://localhost:{API_PORT}/search"
|
13 |
|
14 |
st.title("Prompt Search App")
|
|
|
8 |
api_thread.start()
|
9 |
|
10 |
# Use localhost as FastAPI and Streamlit run in the same environment on Spaces
|
11 |
+
API_PORT = os.getenv("PORT", "7861")
|
12 |
API_URL = f"http://localhost:{API_PORT}/search"
|
13 |
|
14 |
st.title("Prompt Search App")
|