Spaces:
Sleeping
Sleeping
File size: 384 Bytes
0af7025 d51fa15 d3f2071 d51fa15 0af7025 6475b08 d51fa15 6475b08 d51fa15 0af7025 bf93ff7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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()
|