Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def chatgpt_clone(input, history):
|
|
47 |
return history, history
|
48 |
|
49 |
|
50 |
-
block = gr.Blocks(
|
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(
|
|
|
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()
|