Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def generate(starting_text):
|
|
10 |
seed = random.randint(1, 10000000)
|
11 |
set_seed(seed)
|
12 |
response= gpt2_pipe(starting_text, max_length=20, num_return_sequences=5)
|
13 |
-
return response[1]
|
14 |
|
15 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|
16 |
out=grad.Textbox(lines=1, label="Generated Text")
|
|
|
10 |
seed = random.randint(1, 10000000)
|
11 |
set_seed(seed)
|
12 |
response= gpt2_pipe(starting_text, max_length=20, num_return_sequences=5)
|
13 |
+
return response[1]['generated_text']
|
14 |
|
15 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|
16 |
out=grad.Textbox(lines=1, label="Generated Text")
|