Spaces:
Runtime error
Runtime error
File size: 245 Bytes
474d806 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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() |