Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def process_audio(audio, text, chat_history):
|
|
55 |
}
|
56 |
)
|
57 |
|
58 |
-
chat_history.append({"role": "user", "content": text})
|
59 |
# Set up the streamer for token generation
|
60 |
streamer = TextIteratorStreamer(processor.tokenizer, skip_prompt=True, skip_special_tokens=True)
|
61 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
|
|
55 |
}
|
56 |
)
|
57 |
|
58 |
+
# chat_history.append({"role": "user", "content": text})
|
59 |
# Set up the streamer for token generation
|
60 |
streamer = TextIteratorStreamer(processor.tokenizer, skip_prompt=True, skip_special_tokens=True)
|
61 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|