Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,6 @@ def think(request):
|
|
82 |
|
83 |
#if reasoning != "":
|
84 |
# messages.append({"role": "assistant", "content": "<think>\n" + reasoning + "</think>\n"})
|
85 |
-
print(messages)
|
86 |
payload = {
|
87 |
"model": model,
|
88 |
"messages": messages,
|
@@ -136,7 +135,7 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
|
|
136 |
|
137 |
if not fast_mode:
|
138 |
# Immediately yield a "thinking" status message.
|
139 |
-
yield "HealthAssistant is Thinking! Please wait, your response will output shortly
|
140 |
|
141 |
think_result = think(conversation)
|
142 |
|
@@ -198,7 +197,7 @@ with gr.Blocks(css=css) as demo:
|
|
198 |
gr.HTML(DESCRIPTION)
|
199 |
|
200 |
# Add the checkbox directly to the layout
|
201 |
-
fast_mode_checkbox = gr.Checkbox(label="Fast Mode (Skips Reasoning
|
202 |
|
203 |
gr.ChatInterface(
|
204 |
fn=chat_with_openai,
|
|
|
82 |
|
83 |
#if reasoning != "":
|
84 |
# messages.append({"role": "assistant", "content": "<think>\n" + reasoning + "</think>\n"})
|
|
|
85 |
payload = {
|
86 |
"model": model,
|
87 |
"messages": messages,
|
|
|
135 |
|
136 |
if not fast_mode:
|
137 |
# Immediately yield a "thinking" status message.
|
138 |
+
yield "HealthAssistant is Thinking! Please wait, your response will output shortly. This may take 30-60 seconds...\n\n"
|
139 |
|
140 |
think_result = think(conversation)
|
141 |
|
|
|
197 |
gr.HTML(DESCRIPTION)
|
198 |
|
199 |
# Add the checkbox directly to the layout
|
200 |
+
fast_mode_checkbox = gr.Checkbox(label="Fast Mode (Skips Reasoning. Provides Immediate, Less Accurate Responses.)", value=False)
|
201 |
|
202 |
gr.ChatInterface(
|
203 |
fn=chat_with_openai,
|