alexpantex commited on
Commit
4b311ae
·
verified ·
1 Parent(s): 61bfd6f

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ api_thread.start()
8
  import requests
9
 
10
  # Use localhost as FastAPI and Streamlit run in the same environment on Spaces
11
- API_URL = "http://localhost:8000/search"
12
 
13
  st.title("Prompt Search App")
14
  st.write("Enter a query below to find similar prompts.")
 
8
  import requests
9
 
10
  # Use localhost as FastAPI and Streamlit run in the same environment on Spaces
11
+ API_URL = f"http://localhost:{os.getenv('API_PORT', '8000')}/search"
12
 
13
  st.title("Prompt Search App")
14
  st.write("Enter a query below to find similar prompts.")