Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def clear_chat_history():
|
|
| 157 |
current_chat_history.clear() # Clear the chat history
|
| 158 |
return "Chat history cleared."
|
| 159 |
|
| 160 |
-
def send_message(message, history, system_message, max_tokens, temperature, top_p
|
| 161 |
if message:
|
| 162 |
history.append((message, ""))
|
| 163 |
response = respond(
|
|
@@ -167,7 +167,6 @@ def send_message(message, history, system_message, max_tokens, temperature, top_
|
|
| 167 |
max_tokens=max_tokens,
|
| 168 |
temperature=temperature,
|
| 169 |
top_p=top_p,
|
| 170 |
-
hf_token=hf_token,
|
| 171 |
)
|
| 172 |
response_text = ""
|
| 173 |
for r in response:
|
|
|
|
| 157 |
current_chat_history.clear() # Clear the chat history
|
| 158 |
return "Chat history cleared."
|
| 159 |
|
| 160 |
+
def send_message(message, history, system_message, max_tokens, temperature, top_p):
|
| 161 |
if message:
|
| 162 |
history.append((message, ""))
|
| 163 |
response = respond(
|
|
|
|
| 167 |
max_tokens=max_tokens,
|
| 168 |
temperature=temperature,
|
| 169 |
top_p=top_p,
|
|
|
|
| 170 |
)
|
| 171 |
response_text = ""
|
| 172 |
for r in response:
|