KiraPGR commited on
Commit
e81b638
·
verified ·
1 Parent(s): 1534ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -12,15 +12,14 @@ def echo(text, text2, request: gr.Request):
12
  print(text,text2)
13
  return text+text2
14
 
15
- # Define the inputs and outputs for your interface
16
- inputs = [
17
- gr.inputs.Textbox(lines=2, placeholder="Enter your message here..."),
18
- gr.inputs.Textbox(lines=2, placeholder="Enter additional parameter here...")
19
- ]
20
- outputs = gr.outputs.Textbox()
21
 
22
- # Create the interface
23
- interface = gr.Interface(fn=echo, inputs=inputs, outputs=outputs)
 
 
 
 
 
24
 
25
- # Launch the interface
26
- interface.launch()
 
12
  print(text,text2)
13
  return text+text2
14
 
 
 
 
 
 
 
15
 
16
+ demo = gr.Interface(
17
+ echo,
18
+ [
19
+ "textbox",
20
+ "textbox"
21
+ ]
22
+ )
23
 
24
+
25
+ demo.launch()