Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def chat(message, history):
|
|
42 |
message = client.beta.threads.messages.create(
|
43 |
thread_id=thread.id,
|
44 |
role="user",
|
45 |
-
content=
|
46 |
)
|
47 |
|
48 |
show_json(message)
|
@@ -69,7 +69,7 @@ gr.ChatInterface(
|
|
69 |
chatbot=gr.Chatbot(height=300),
|
70 |
textbox=gr.Textbox(placeholder="Ask Math Tutor any question", container=False, scale=7),
|
71 |
title="Math Tutor",
|
72 |
-
description="
|
73 |
theme="soft",
|
74 |
examples=["I need to solve the equation `3x + 12 = 14`. Can you help me?"],
|
75 |
cache_examples=False,
|
|
|
42 |
message = client.beta.threads.messages.create(
|
43 |
thread_id=thread.id,
|
44 |
role="user",
|
45 |
+
content=message,
|
46 |
)
|
47 |
|
48 |
show_json(message)
|
|
|
69 |
chatbot=gr.Chatbot(height=300),
|
70 |
textbox=gr.Textbox(placeholder="Ask Math Tutor any question", container=False, scale=7),
|
71 |
title="Math Tutor",
|
72 |
+
description="Question",
|
73 |
theme="soft",
|
74 |
examples=["I need to solve the equation `3x + 12 = 14`. Can you help me?"],
|
75 |
cache_examples=False,
|