RaniyaK commited on
Commit
aa7bcef
·
verified ·
1 Parent(s): 877b9eb

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +9 -5
streamlit_app.py CHANGED
@@ -1,5 +1,9 @@
1
- # streamlit_app.py
2
- import streamlit as st
3
-
4
- x = st.slider('Select a value')
5
- st.write(x, 'squared is', x * x)
 
 
 
 
 
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)