Spaces:
Sleeping
Sleeping
Fixing application file
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def summarizer(sentence, min_length, max_length):
|
5 |
-
model_name = "/
|
6 |
|
7 |
# Create a summarization pipeline with the local model
|
8 |
summarizer = pipeline("summarization", model=model_name, tokenizer=model_name)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def summarizer(sentence, min_length, max_length):
|
5 |
+
model_name = "AirrStorm/T5-Small-XSUM-Summarizer"
|
6 |
|
7 |
# Create a summarization pipeline with the local model
|
8 |
summarizer = pipeline("summarization", model=model_name, tokenizer=model_name)
|