Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,19 +5,19 @@ from pathlib import Path
|
|
5 |
import os, subprocess
|
6 |
import requests
|
7 |
|
8 |
-
st.set_page_config(page_title='
|
9 |
# Cache the header of the app to prevent re-rendering on each load
|
10 |
@st.cache_resource
|
11 |
def display_app_header():
|
12 |
"""Display the header of the Streamlit app."""
|
13 |
-
st.title("
|
14 |
st.subheader("Just a little demonstrator")
|
15 |
# Display the header of the app
|
16 |
display_app_header()
|
17 |
|
18 |
# UI sidebar parameters ####################################
|
19 |
st.sidebar.header("Loging")
|
20 |
-
if hg_token :=st.sidebar.text_input('Enter your
|
21 |
st.sidebar.info('Logged', icon="ℹ️")
|
22 |
else:
|
23 |
st.sidebar.warning("enter your token")
|
|
|
5 |
import os, subprocess
|
6 |
import requests
|
7 |
|
8 |
+
st.set_page_config(page_title='HF Inference Client Demo',layout="wide")
|
9 |
# Cache the header of the app to prevent re-rendering on each load
|
10 |
@st.cache_resource
|
11 |
def display_app_header():
|
12 |
"""Display the header of the Streamlit app."""
|
13 |
+
st.title("HF Inference Client Demo")
|
14 |
st.subheader("Just a little demonstrator")
|
15 |
# Display the header of the app
|
16 |
display_app_header()
|
17 |
|
18 |
# UI sidebar parameters ####################################
|
19 |
st.sidebar.header("Loging")
|
20 |
+
if hg_token :=st.sidebar.text_input('Enter your HF token'):
|
21 |
st.sidebar.info('Logged', icon="ℹ️")
|
22 |
else:
|
23 |
st.sidebar.warning("enter your token")
|