Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +9 -5
streamlit_app.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
-
|
2 |
-
import
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import requests
|
3 |
+
|
4 |
+
st.title("Streamlit App")
|
5 |
+
|
6 |
+
response = requests.get("http://localhost:5000/api/data")
|
7 |
+
data = response.json()
|
8 |
+
|
9 |
+
st.write(data)
|