Upload folder using huggingface_hub
Browse files- Test_RAG.py +2 -2
Test_RAG.py
CHANGED
|
@@ -630,8 +630,8 @@ def bot(history, temperature, top_p, top_k, repetition_penalty, hide_full_prompt
|
|
| 630 |
# for new_text in streamer:
|
| 631 |
# partial_text = text_processor(partial_text, new_text)
|
| 632 |
# history[-1][1] = partial_text
|
| 633 |
-
|
| 634 |
-
|
| 635 |
|
| 636 |
|
| 637 |
def request_cancel():
|
|
|
|
| 630 |
# for new_text in streamer:
|
| 631 |
# partial_text = text_processor(partial_text, new_text)
|
| 632 |
# history[-1][1] = partial_text
|
| 633 |
+
history[-1][1] = response
|
| 634 |
+
yield history
|
| 635 |
|
| 636 |
|
| 637 |
def request_cancel():
|