Spaces:
Sleeping
Sleeping
Upload frontend.py
Browse files- frontend.py +8 -0
frontend.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import requests
|
| 3 |
+
|
| 4 |
+
st.title("Streamlit + FastAPI on Hugging Face")
|
| 5 |
+
|
| 6 |
+
# Call FastAPI backend
|
| 7 |
+
response = requests.get("http://localhost:8000/api")
|
| 8 |
+
st.write(response.json())
|