Manikandan-Alagu commited on
Commit
25f7de6
·
verified ·
1 Parent(s): 7a2aaa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,9 +35,9 @@ def model(input):
35
 
36
  return response.text
37
 
38
-
39
-
40
- demo = gr.Interface(fn=model, inputs="textbox", outputs="textbox")
41
 
42
  if __name__ == "__main__":
43
  demo.launch()
 
35
 
36
  return response.text
37
 
38
+ inputs = gr.Textbox(placeholder="Let Chat")
39
+ outputs = gr.Textbox()
40
+ demo = inputs.change(model, inputs, outputs)
41
 
42
  if __name__ == "__main__":
43
  demo.launch()