Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from requests_toolkit import exchange_rate_cn
|
2 |
+
import streamlit as st
|
3 |
+
import time
|
4 |
+
|
5 |
+
st.markdown("# 中国实时汇率")
|
6 |
+
with st.spinner():
|
7 |
+
try:
|
8 |
+
results = exchange_rate_cn()
|
9 |
+
except:
|
10 |
+
st.info('Connection Failed. Retry in 3 seconds...')
|
11 |
+
time.sleep(3)
|
12 |
+
st.experimental_rerun()
|
13 |
+
st.dataframe(results)
|