Mr-Vicky-01 commited on
Commit
43feb78
1 Parent(s): 744e9ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,14 +28,14 @@ def get_url_text(url_link):
28
 
29
  def get_answer(text):
30
  template = """{text}"""
31
- prompt = PromptTemplate(template=template, input_variables=["question"])
32
 
33
  llm_chain = LLMChain(prompt=prompt,
34
  llm=HuggingFaceHub(repo_id="Mr-Vicky-01/conversational_sumarization",
35
  model_kwargs={"max_length":100,
36
  "max_new_tokens":100,
37
  "do_sample": False}))
38
- answer = llm_chain.run(question)
39
  return answer
40
 
41
  def text_to_speech(text, language='en'):
 
28
 
29
  def get_answer(text):
30
  template = """{text}"""
31
+ prompt = PromptTemplate(template=template, input_variables=["text"])
32
 
33
  llm_chain = LLMChain(prompt=prompt,
34
  llm=HuggingFaceHub(repo_id="Mr-Vicky-01/conversational_sumarization",
35
  model_kwargs={"max_length":100,
36
  "max_new_tokens":100,
37
  "do_sample": False}))
38
+ answer = llm_chain.run(text)
39
  return answer
40
 
41
  def text_to_speech(text, language='en'):