Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -335,7 +335,8 @@ def create_interface():
|
|
| 335 |
return iface
|
| 336 |
|
| 337 |
def chat_interface(prompt, history, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty):
|
| 338 |
-
|
|
|
|
| 339 |
|
| 340 |
iface = gr.Blocks()
|
| 341 |
|
|
|
|
| 335 |
return iface
|
| 336 |
|
| 337 |
def chat_interface(prompt, history, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty):
|
| 338 |
+
generated_text = generate(prompt, history, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty)
|
| 339 |
+
return generated_text, "" # Return the chatbot response and an empty string for the message textbox
|
| 340 |
|
| 341 |
iface = gr.Blocks()
|
| 342 |
|