eswardivi commited on
Commit
65756a2
·
1 Parent(s): c873aff
Files changed (1) hide show
  1. app.py +1 -1
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 and return only JSON \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(
 
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(