Spaces:
Runtime error
Runtime error
prabinpanta0
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ if not HF_TOKEN:
|
|
13 |
login(HF_TOKEN, add_to_git_credential=True)
|
14 |
|
15 |
# Create the pipeline for text generation using the specified model
|
16 |
-
pipe = pipeline("text-generation", model="
|
17 |
|
18 |
def generate(text):
|
19 |
try:
|
|
|
13 |
login(HF_TOKEN, add_to_git_credential=True)
|
14 |
|
15 |
# Create the pipeline for text generation using the specified model
|
16 |
+
pipe = pipeline("text-generation", model="distilbert/distilgpt2", token=HF_TOKEN)
|
17 |
|
18 |
def generate(text):
|
19 |
try:
|