FastAPI / streamlit_app.py
nonstopiodemo's picture
Upload folder using huggingface_hub
5cce60b verified
raw
history blame contribute delete
364 Bytes
```python
import streamlit as st
import requests
st.title("Current Timing Fast API")
response = requests.get("http://worldclockapi.com/api/json/utc/now")
if response.status_code == 200:
current_time = response.json()["currentDateTime"]
st.write(f"The current timing is: {current_time}")
else:
st.write("Error: Unable to retrieve current timing")
```