AI-Research-Assistant / test /test_refresh.py
zej97's picture
Upload folder using huggingface_hub
474d806
raw
history blame
245 Bytes
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()