Spaces:
Runtime error
Runtime error
import gradio as gr | |
import time | |
def get_time(): | |
return time.ctime() | |
md = gr.Markdown(get_time) | |
def refresh(): | |
print("refresh") | |
md.update() | |
return md.value | |
iface = gr.Interface(fn=refresh, inputs=[], outputs=md) | |
iface.launch() |