Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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[
|
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"
|