Manikandan-Alagu commited on
Commit
cdabf37
·
verified ·
1 Parent(s): f21e697

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -35,11 +35,11 @@ def model(input):
35
 
36
  return response.text
37
 
38
- with gr.Blocks() as demo:
39
 
40
- inputs = gr.Textbox(placeholder="Let Chat",value="Hi there")
41
- outputs = gr.Textbox()
42
- inputs.change(model, inputs, outputs)
 
43
 
44
  if __name__ == "__main__":
45
  demo.launch()
 
35
 
36
  return response.text
37
 
 
38
 
39
+
40
+ inputs = gr.Textbox(placeholder="Let Chat")
41
+ outputs = gr.Textbox()
42
+ demo = gr.Interface(model, inputs, outputs)
43
 
44
  if __name__ == "__main__":
45
  demo.launch()