Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,10 @@ with gr.Blocks():
|
|
32 |
p = gr.Textbox()
|
33 |
f = gr.Textbox()
|
34 |
n = gr.Textbox()
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
39 |
# demo.launch()
|
40 |
demo.launch(auth=("username", "password"))
|
|
|
32 |
p = gr.Textbox()
|
33 |
f = gr.Textbox()
|
34 |
n = gr.Textbox()
|
35 |
+
with gr.Row():
|
36 |
+
btn = gr.Button("insert")
|
37 |
+
btn2 = gr.Button("query")
|
38 |
+
btn.click(greet, inputs=[p, f, gr.Number(value=0, visible=False)], outputs=[n])
|
39 |
+
btn2.click(greet, inputs=[p, f, gr.Number(value=1, visible=False)], outputs=[n])
|
40 |
# demo.launch()
|
41 |
demo.launch(auth=("username", "password"))
|