HarishMaths commited on
Commit
0512202
·
verified ·
1 Parent(s): f12df25

Upload frontend.py

Browse files
Files changed (1) hide show
  1. 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())