Spaces:
Sleeping
Sleeping
import gradio as gr | |
import os | |
def function(Textbox,Textbox2): | |
target = os.environ.get("target") | |
if Textbox2 == target: | |
return "Yes" | |
else: | |
return "No" | |
inputs = [ | |
gr.inputs.Textbox(label="Textbox",type="text"), | |
gr.inputs.Textbox(label="Textbox2",type="password") | |
] | |
iface = gr.Interface(fn=function, inputs=inputs, outputs="text") | |
iface.launch() | |