Update BrainBot.py
Browse files- BrainBot.py +1 -0
BrainBot.py
CHANGED
@@ -133,6 +133,7 @@ if uploaded_file is not None:
|
|
133 |
data = {"file_path": temp_file_path, "file_type": uploaded_file.type}
|
134 |
# FASTAPI_URL = f"http://localhost:8000/load_file/{llm}"
|
135 |
FASTAPI_URL = f"https://huggingface.co/spaces/aminaj/BrainBot/load_file/{llm}"
|
|
|
136 |
response = requests.post(FASTAPI_URL, json=data)
|
137 |
st.success(response.text)
|
138 |
st.session_state['current_file'] = uploaded_file.name
|
|
|
133 |
data = {"file_path": temp_file_path, "file_type": uploaded_file.type}
|
134 |
# FASTAPI_URL = f"http://localhost:8000/load_file/{llm}"
|
135 |
FASTAPI_URL = f"https://huggingface.co/spaces/aminaj/BrainBot/load_file/{llm}"
|
136 |
+
st.write(FASTAPI_URL)
|
137 |
response = requests.post(FASTAPI_URL, json=data)
|
138 |
st.success(response.text)
|
139 |
st.session_state['current_file'] = uploaded_file.name
|