valhalla commited on
Commit
b4f5897
1 Parent(s): f771a11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def inference(input_sentence, max_length, sample_or_greedy, raw_text=False):
46
  )
47
 
48
  if raw_text:
49
- return None, data[0]['generated_text']
50
 
51
  width, height = 3326, 3326
52
  assets_path = "assets"
 
46
  )
47
 
48
  if raw_text:
49
+ return None, data['generated_text'][0]
50
 
51
  width, height = 3326, 3326
52
  assets_path = "assets"