Spaces:
Sleeping
Sleeping
File size: 630 Bytes
0310738 44733a3 50c2d10 44733a3 712bb73 44733a3 50c2d10 44733a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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) |