AirrStorm commited on
Commit
2ee6023
·
1 Parent(s): d1d897c

Fixing application file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "/home/airrstorm/Documents/Python/Hugging-Face/Models/T5-Small-XSUM-Summarizer"
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)