Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ pipe = pipeline('text-generation', model=model,tokenizer = tokenizer)
|
|
8 |
|
9 |
@spaces.GPU(duration=120)
|
10 |
def generate(prompt):
|
11 |
-
return pipe(prompt)['generated_text']
|
12 |
|
13 |
gr.Interface(
|
14 |
fn=generate,
|
|
|
8 |
|
9 |
@spaces.GPU(duration=120)
|
10 |
def generate(prompt):
|
11 |
+
return pipe(prompt)[0]['generated_text']
|
12 |
|
13 |
gr.Interface(
|
14 |
fn=generate,
|