Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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))
|