Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -58,9 +58,10 @@ class OrcaChatBot:
|
|
58 |
do_sample=True
|
59 |
)
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
64 |
Orca_bot = OrcaChatBot(model, tokenizer)
|
65 |
|
66 |
def gradio_predict(user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty):
|
|
|
58 |
do_sample=True
|
59 |
)
|
60 |
|
61 |
+
response = self.tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
62 |
+
self.update_conversation_history("", response)
|
63 |
+
return response
|
64 |
+
|
65 |
Orca_bot = OrcaChatBot(model, tokenizer)
|
66 |
|
67 |
def gradio_predict(user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty):
|