Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -18,7 +18,7 @@ if "loading_state" not in st.session_state:
|
|
18 |
|
19 |
# ✅ Show loading animation only once at first load
|
20 |
if st.session_state.loading_state:
|
21 |
-
with st_lottie_spinner(load_local_lottie('Loading.json'), key='hello'):
|
22 |
time.sleep(3)
|
23 |
st.session_state.loading_state = False
|
24 |
|
@@ -33,7 +33,7 @@ character = st.selectbox("Select Character", [
|
|
33 |
])
|
34 |
|
35 |
if st.button("Play Audio"):
|
36 |
-
with st_lottie_spinner(load_local_lottie('voiceline.json'), key='download'):
|
37 |
url = "https://8000-01jynw0agcdpzps7kn9c8gfs4p.cloudspaces.litng.ai/predict"
|
38 |
data = {"prompt": text, "charecter": character}
|
39 |
response = requests.post(url, json=data)
|
|
|
18 |
|
19 |
# ✅ Show loading animation only once at first load
|
20 |
if st.session_state.loading_state:
|
21 |
+
with st_lottie_spinner(load_local_lottie('./src/Loading.json'), key='hello'):
|
22 |
time.sleep(3)
|
23 |
st.session_state.loading_state = False
|
24 |
|
|
|
33 |
])
|
34 |
|
35 |
if st.button("Play Audio"):
|
36 |
+
with st_lottie_spinner(load_local_lottie('./src/voiceline.json'), key='download'):
|
37 |
url = "https://8000-01jynw0agcdpzps7kn9c8gfs4p.cloudspaces.litng.ai/predict"
|
38 |
data = {"prompt": text, "charecter": character}
|
39 |
response = requests.post(url, json=data)
|