Maaz66 commited on
Commit
d65a75a
1 Parent(s): dc857dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -47,7 +47,7 @@ def chatgpt_clone(input, history):
47
  return history, history
48
 
49
 
50
- block = gr.Blocks(api_name=True)
51
 
52
 
53
  with block:
@@ -57,6 +57,6 @@ with block:
57
  message = gr.Textbox(placeholder=prompt)
58
  state = gr.State()
59
  submit = gr.Button("SEND")
60
- submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state],api_name=True)
61
 
62
- block.launch(api_name=True)
 
47
  return history, history
48
 
49
 
50
+ block = gr.Blocks()
51
 
52
 
53
  with block:
 
57
  message = gr.Textbox(placeholder=prompt)
58
  state = gr.State()
59
  submit = gr.Button("SEND")
60
+ submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state],api_name="True")
61
 
62
+ block.launch()