Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,10 @@ def summarize_and_translate(news_text):
|
|
39 |
input_interface = gr.inputs.Textbox(label="Input your News text! (Spanish)")
|
40 |
output_interface = gr.outputs.Textbox(label="Your Summarized News Text in Native Quechua!")
|
41 |
|
42 |
-
#
|
|
|
43 |
|
44 |
-
|
|
|
|
|
45 |
iface.launch()
|
|
|
39 |
input_interface = gr.inputs.Textbox(label="Input your News text! (Spanish)")
|
40 |
output_interface = gr.outputs.Textbox(label="Your Summarized News Text in Native Quechua!")
|
41 |
|
42 |
+
# Add poster link to the interface description
|
43 |
+
description = "This is a Spanish-to-Quechua news summarization and translation app. It uses a state-of-the-art AI model to summarize news articles in Spanish and translate the summary to Quechua. You can learn more about this project and its creators by visiting this <a href='https://files.fm/u/ktszfunsz'>poster</a>."
|
44 |
|
45 |
+
# Create and launch the Gradio app
|
46 |
+
iface = gr.Interface(fn=summarize_and_translate, inputs=input_interface, outputs=output_interface,
|
47 |
+
title="Spanish-to-Quechua News Summarization and Translation", description=description)
|
48 |
iface.launch()
|