Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,9 @@ with gr.Blocks() as demo:
|
|
| 28 |
|
| 29 |
def bot(history):
|
| 30 |
print(history)
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
#stream = llm(prompt = f"<s>[INST]<<SYS>> Jesteś AI assystentem. Odpowiadaj po polsku. {history}. ", **params)
|
| 33 |
history[-1][1] = ""
|
| 34 |
answer_save = ""
|
|
|
|
| 28 |
|
| 29 |
def bot(history):
|
| 30 |
print(history)
|
| 31 |
+
prompt = f"Jesteś AI assystentem. Odpowiadaj po polsku. <user>: {history}. <assistant>:"
|
| 32 |
+
print(prompt)
|
| 33 |
+
stream = llm(prompt, **params)
|
| 34 |
#stream = llm(prompt = f"<s>[INST]<<SYS>> Jesteś AI assystentem. Odpowiadaj po polsku. {history}. ", **params)
|
| 35 |
history[-1][1] = ""
|
| 36 |
answer_save = ""
|