Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# app.py – CPU-only summariser for Hugging Face Spaces (free tier)
|
2 |
from optimum.onnxruntime import ORTModelForSeq2SeqLM
|
3 |
import textwrap, gradio as gr
|
4 |
-
from transformers import pipeline
|
5 |
|
6 |
# 1️⃣ small, open model that needs no access-token
|
7 |
MODEL_ID = "Xenova/distilbart-cnn-6-6"
|
|
|
1 |
# app.py – CPU-only summariser for Hugging Face Spaces (free tier)
|
2 |
from optimum.onnxruntime import ORTModelForSeq2SeqLM
|
3 |
import textwrap, gradio as gr
|
4 |
+
from transformers import AutoTokenizer, pipeline
|
5 |
|
6 |
# 1️⃣ small, open model that needs no access-token
|
7 |
MODEL_ID = "Xenova/distilbart-cnn-6-6"
|