shivambhosale commited on
Commit
79e1c8a
·
verified ·
1 Parent(s): f4ea24f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
 
 
4
  def summarize_article(article, model_name, max_length, temperature, top_k, top_p):
5
  summarizer = pipeline("summarization", model=model_name)
6
  top_k = int(round(top_k))
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ print(gr. __version__)
5
+
6
  def summarize_article(article, model_name, max_length, temperature, top_k, top_p):
7
  summarizer = pipeline("summarization", model=model_name)
8
  top_k = int(round(top_k))