Spaces:
Runtime error
Runtime error
updated
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ with gr.Blocks() as demo:
|
|
| 31 |
def generate_json(chat_history):
|
| 32 |
return chat_history.value
|
| 33 |
|
| 34 |
-
|
| 35 |
fn=chat_with_instructor,
|
| 36 |
|
| 37 |
title="Chat with Instructor",
|
|
@@ -51,5 +51,5 @@ with gr.Blocks() as demo:
|
|
| 51 |
inputs=None,
|
| 52 |
outputs=[chat_history_json])
|
| 53 |
|
| 54 |
-
demo.queue()
|
| 55 |
demo.launch()
|
|
|
|
| 31 |
def generate_json(chat_history):
|
| 32 |
return chat_history.value
|
| 33 |
|
| 34 |
+
demo = gr.ChatInterface(
|
| 35 |
fn=chat_with_instructor,
|
| 36 |
|
| 37 |
title="Chat with Instructor",
|
|
|
|
| 51 |
inputs=None,
|
| 52 |
outputs=[chat_history_json])
|
| 53 |
|
| 54 |
+
# demo.queue()
|
| 55 |
demo.launch()
|