Sanchit Gandhi commited on
Commit
f7c91fd
·
1 Parent(s): 1933570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def inference(input_sentence, max_length, sample_or_greedy, raw_text=True):
78
  )
79
 
80
  if raw_text:
81
- return None, data[0]['generated_text'][0]
82
 
83
  width, height = 3326, 3326
84
  assets_path = "assets"
 
78
  )
79
 
80
  if raw_text:
81
+ return None, data
82
 
83
  width, height = 3326, 3326
84
  assets_path = "assets"