Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,5 +24,15 @@ def summarize(lang, text):
|
|
| 24 |
return tokenizer.decode(output[0], skip_special_tokens=True)
|
| 25 |
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
gr.Interface(fn=summarize, inputs=[gr.inputs.Radio(["fr", "de", "tu", "es"]), gr.inputs.Textbox(
|
| 28 |
-
lines=7, label="Input Text")], outputs="text").launch(inline=False)
|
|
|
|
| 24 |
return tokenizer.decode(output[0], skip_special_tokens=True)
|
| 25 |
|
| 26 |
|
| 27 |
+
|
| 28 |
+
theme = "darkgrass"
|
| 29 |
+
|
| 30 |
+
title = "Summarization multilingual MLSUM"
|
| 31 |
+
|
| 32 |
+
description = "Gradio Demo for Summarization models trained on MLSUM dataset by Manuel Romero"
|
| 33 |
+
|
| 34 |
+
article = "<p style='text-align: center'><a href='https://hf.com/mrm8488' target='_blank'>More models</a></p>"
|
| 35 |
+
|
| 36 |
+
|
| 37 |
gr.Interface(fn=summarize, inputs=[gr.inputs.Radio(["fr", "de", "tu", "es"]), gr.inputs.Textbox(
|
| 38 |
+
lines=7, label="Input Text")], outputs="text", theme=theme, title=title, description=description, article=article, examples=examples, enable_queue=True).launch(inline=False)
|