kat33 commited on
Commit
f43faed
1 Parent(s): 197ae45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def question_answer(context, question):
23
  llm = Llama(model_path=mfile)
24
  output = llm(text, max_tokens=33, stop=["### Response"], echo=True)
25
  print(output)
26
- return output.choices[0].text
27
  '''
28
  Output is of the form:
29
  {
 
23
  llm = Llama(model_path=mfile)
24
  output = llm(text, max_tokens=33, stop=["### Response"], echo=True)
25
  print(output)
26
+ return output['choices'][0]['text']
27
  '''
28
  Output is of the form:
29
  {