Spaces:
Sleeping
Sleeping
File size: 364 Bytes
5cce60b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
```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")
``` |