import gradio as gr import time import random import threading from utils import schedule_function def greet(name): return "Hello " + name + "!!" iface = gr.Interface(fn=greet, inputs="text", outputs="text") if __name__ == '__main__': scheduler_thread = threading.Thread(target=schedule_function) scheduler_thread.start() iface.launch()