Spaces:
Running
on
Zero
Running
on
Zero
minor
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def synthesize(article_url,progress_audio=gr.Progress()):
|
|
71 |
}
|
72 |
"""
|
73 |
chat = []
|
74 |
-
chat.append({"role": "user", "content": "{text} \n Convert the text as Elaborate Conversation between two people as Podcast.\nfollowing this template
|
75 |
messages = tok.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
|
76 |
model_inputs = tok([messages], return_tensors="pt").to(device)
|
77 |
streamer = TextIteratorStreamer(
|
|
|
71 |
}
|
72 |
"""
|
73 |
chat = []
|
74 |
+
chat.append({"role": "user", "content": "{text} \n Convert the text as Elaborate Conversation between two people as Podcast.\nfollowing this template: \n {template}"})
|
75 |
messages = tok.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
|
76 |
model_inputs = tok([messages], return_tensors="pt").to(device)
|
77 |
streamer = TextIteratorStreamer(
|