Spaces:
Sleeping
Sleeping
ns-devel
commited on
Commit
·
d9b7749
1
Parent(s):
041eb13
Added logs
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def main():
|
|
20 |
|
21 |
API_URL = f"{os.environ['SERVER_URL']}/api/get-mf-data/?query={prompt}"
|
22 |
response = requests.get(API_URL)
|
23 |
-
|
|
|
24 |
if response.status_code != 200:
|
25 |
st.error("Error fetching data from the server.")
|
26 |
st.stop()
|
|
|
20 |
|
21 |
API_URL = f"{os.environ['SERVER_URL']}/api/get-mf-data/?query={prompt}"
|
22 |
response = requests.get(API_URL)
|
23 |
+
st.write(response.status_code)
|
24 |
+
st.write(response.json())
|
25 |
if response.status_code != 200:
|
26 |
st.error("Error fetching data from the server.")
|
27 |
st.stop()
|