Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
|
21 |
|
22 |
# Create a pipeline for text generation
|
23 |
generator = pipeline(
|
24 |
-
task="
|
25 |
model=model,
|
26 |
tokenizer=tokenizer,
|
27 |
max_new_tokens=50, # Adjust as needed
|
@@ -45,4 +45,4 @@ demo = gr.Interface(
|
|
45 |
description="Enter an email and let the model generate the subject for you!",
|
46 |
)
|
47 |
|
48 |
-
demo.launch()
|
|
|
21 |
|
22 |
# Create a pipeline for text generation
|
23 |
generator = pipeline(
|
24 |
+
task="summarization",
|
25 |
model=model,
|
26 |
tokenizer=tokenizer,
|
27 |
max_new_tokens=50, # Adjust as needed
|
|
|
45 |
description="Enter an email and let the model generate the subject for you!",
|
46 |
)
|
47 |
|
48 |
+
demo.launch(debug=True)
|