Spaces:
Sleeping
Sleeping
fixing nesting on lines 64-65
Browse files
app.py
CHANGED
|
@@ -61,8 +61,8 @@ def respond(message, history):
|
|
| 61 |
for segment in responseStream:
|
| 62 |
token = segment.choices[0].delta.content
|
| 63 |
if token is not None:
|
| 64 |
-
|
| 65 |
-
|
| 66 |
|
| 67 |
chatbot = gr.ChatInterface(respond, title = "Student Formula Bot 🔬",
|
| 68 |
description = "Welcome to the core component of "The Student Formula": the RAG chatbot! With the ability to act as a finance tutor, accountability buddy, and goal-setting partner all in one, it's designed to best suit your needs on the way to productivity and success. To get started, ask about the basic principles of creating a budget!")
|
|
|
|
| 61 |
for segment in responseStream:
|
| 62 |
token = segment.choices[0].delta.content
|
| 63 |
if token is not None:
|
| 64 |
+
response += token
|
| 65 |
+
yield response
|
| 66 |
|
| 67 |
chatbot = gr.ChatInterface(respond, title = "Student Formula Bot 🔬",
|
| 68 |
description = "Welcome to the core component of "The Student Formula": the RAG chatbot! With the ability to act as a finance tutor, accountability buddy, and goal-setting partner all in one, it's designed to best suit your needs on the way to productivity and success. To get started, ask about the basic principles of creating a budget!")
|