nonstopiodemo commited on
Commit
5cce60b
Β·
verified Β·
1 Parent(s): 16dd029

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +7 -7
  2. requirements.txt +3 -0
  3. streamlit_app.py +14 -0
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
  title: FastAPI
3
- emoji: πŸ“‰
4
- colorFrom: red
5
- colorTo: gray
6
  sdk: streamlit
7
- sdk_version: 1.38.0
8
- app_file: app.py
9
  pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: FastAPI
3
+ emoji: πŸš€
4
+ colorFrom: blue
5
+ colorTo: green
6
  sdk: streamlit
7
+ sdk_version: "1.10.0"
8
+ app_file: streamlit_app.py
9
  pinned: false
10
  ---
11
+ # FastAPI
12
+ This is a Streamlit app generated and deployed automatically.
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ altair==4.2.0
3
+ vega_datasets
streamlit_app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ import streamlit as st
3
+ import requests
4
+
5
+ st.title("Current Timing Fast API")
6
+
7
+ response = requests.get("http://worldclockapi.com/api/json/utc/now")
8
+
9
+ if response.status_code == 200:
10
+ current_time = response.json()["currentDateTime"]
11
+ st.write(f"The current timing is: {current_time}")
12
+ else:
13
+ st.write("Error: Unable to retrieve current timing")
14
+ ```