Spaces:
Runtime error
Runtime error
to cpu
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
pipe = pipeline('text-generation', model='daspartho/prompt-extend'
|
5 |
|
6 |
def extend_prompt(prompt):
|
7 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
pipe = pipeline('text-generation', model='daspartho/prompt-extend')
|
5 |
|
6 |
def extend_prompt(prompt):
|
7 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|