LilyF commited on
Commit
8ed55d1
1 Parent(s): e293f9e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def my_function(input1, input2):
4
+ print(input1)
5
+ print(input2)
6
+ return input1 + input
7
+
8
+ title = 'My gradio app'
9
+ description = "My simple description for my first gradio app"
10
+
11
+ input1_textbox = gr.Textbox(label="Context Box")
12
+ input2_textbox = gr.Textbox(label="Question Box")
13
+
14
+ output1_textbox = gr.Textbox()
15
+
16
+ iface = gr.Interface(fn=my_function,
17
+ inputs=[input1_textbox, input2_textbox],
18
+ outputs=[output1_textbox],
19
+ title=title,
20
+ description=description)
21
+
22
+ iface.launch()