Spaces:
Sleeping
Sleeping
from warnings import filterwarnings | |
filterwarnings("ignore") | |
import gradio as gr | |
def function2(x): | |
print("Triggered 2") | |
def function1(x): | |
if x == "1": # Convert x to a string for comparison | |
print("Triggered 1") | |
with gr.Blocks(): | |
demo1 = gr.Interface(fn=function2, inputs=gr.Textbox(label="Input for Function 2"), outputs=[], title="Function 2 Interface") | |
demo1.launch(share=True, debug=True) | |
with gr.Blocks(): | |
demo = gr.Interface(fn=function1, inputs=gr.Textbox(label="Input for Function 1"), outputs=[], title="Function 1 Interface") | |
demo.launch(share=True, debug=True) |