Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def extract_content_values(data):
|
|
46 |
|
47 |
return content_values
|
48 |
|
49 |
-
def chat(message,
|
50 |
global _client, _assistant, _thread
|
51 |
|
52 |
if _client == None:
|
@@ -79,6 +79,7 @@ gr.ChatInterface(
|
|
79 |
chat,
|
80 |
chatbot=gr.Chatbot(height=300),
|
81 |
textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
|
|
|
82 |
title="Math Tutor",
|
83 |
description="Ask Math Tutor any question",
|
84 |
theme="soft",
|
@@ -88,7 +89,7 @@ gr.ChatInterface(
|
|
88 |
undo_btn=None,
|
89 |
clear_btn="Clear",
|
90 |
#multimodal=True,
|
91 |
-
additional_inputs=[
|
92 |
-
|
93 |
-
],
|
94 |
).launch()
|
|
|
46 |
|
47 |
return content_values
|
48 |
|
49 |
+
def chat(message, msg2, history):
|
50 |
global _client, _assistant, _thread
|
51 |
|
52 |
if _client == None:
|
|
|
79 |
chat,
|
80 |
chatbot=gr.Chatbot(height=300),
|
81 |
textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
|
82 |
+
textbox=gr.Textbox(placeholder="Question2", container=False, scale=7),
|
83 |
title="Math Tutor",
|
84 |
description="Ask Math Tutor any question",
|
85 |
theme="soft",
|
|
|
89 |
undo_btn=None,
|
90 |
clear_btn="Clear",
|
91 |
#multimodal=True,
|
92 |
+
#additional_inputs=[
|
93 |
+
# gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
|
94 |
+
#],
|
95 |
).launch()
|