dhmeltzer commited on
Commit
6f4097c
1 Parent(s): 85c676c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -35,10 +35,11 @@ def main():
35
 
36
  prompt = 'generate a question: ' + user_input
37
 
38
- try:
39
- output = query(checkpoint,{
40
  "inputs": prompt,
41
- "wait_for_model":True})[0]['generated_text']
 
 
42
  except:
43
  st.write(output)
44
  return
 
35
 
36
  prompt = 'generate a question: ' + user_input
37
 
38
+ output = query(checkpoint,{
 
39
  "inputs": prompt,
40
+ "wait_for_model":True})
41
+ try:
42
+ output=output[0]['generated_text']
43
  except:
44
  st.write(output)
45
  return