Spaces:
Sleeping
Sleeping
| ```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") | |
| ``` |