ayoubkirouane commited on
Commit
6423313
·
1 Parent(s): 0fee200

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # Use a pipeline as a high-level helper
2
  from transformers import pipeline
 
3
  pipe = pipeline("summarization", model="ayoubkirouane/T5-4-Summarization")
4
  def summarization(text) :
5
  return pipe(text)[0]["summary_text"]
 
1
  # Use a pipeline as a high-level helper
2
  from transformers import pipeline
3
+ import gradio as gr
4
  pipe = pipeline("summarization", model="ayoubkirouane/T5-4-Summarization")
5
  def summarization(text) :
6
  return pipe(text)[0]["summary_text"]