Spaces:
Sleeping
Sleeping
Create streamlit_app.py
Browse files- streamlit_app.py +17 -0
streamlit_app.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import streamlit.components.v1 as components
|
| 3 |
+
|
| 4 |
+
st.set_page_config(layout="wide")
|
| 5 |
+
st.title("Site com Streamlit + Gradio")
|
| 6 |
+
|
| 7 |
+
col1, col2 = st.columns(2)
|
| 8 |
+
|
| 9 |
+
with col1:
|
| 10 |
+
st.subheader("Parte Streamlit")
|
| 11 |
+
st.write("Aqui podes meter gráficos, tabelas, filtros, métricas, etc.")
|
| 12 |
+
st.metric("Utilizadores", 120)
|
| 13 |
+
st.metric("Projetos", 8)
|
| 14 |
+
|
| 15 |
+
with col2:
|
| 16 |
+
st.subheader("Parte Gradio")
|
| 17 |
+
components.iframe("http://127.0.0.1:7860", height=500, scrolling=True)
|