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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -12,12 +12,15 @@ def echo(text, text2, request: gr.Request):
12
  print(text,text2)
13
  return text+text2
14
 
15
- interface = gr.ChatInterface(echo)
16
- with gr.Blocks() as demo:
17
- gr.Markdown("""
18
- # Just a test...
19
- """)
20
- with gr.Row(visible=False):
21
- interface.render()
22
-
23
- demo.queue().launch()
 
 
 
 
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()