Adapting commited on
Commit
b0b353a
1 Parent(s): a14f924

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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)