Pangea / app.py
Nikoodrk's picture
Update app.py
1b21b44
raw
history blame contribute delete
901 Bytes
import gradio as gr
from gradio.mix import Series
summarization = gr.Interface.load("models/ieuniversity/pangea_summarization_model")
translation = gr.Interface.load("models/ieuniversity/pangea_translation_model")
demo = gr.Series(summarization, translation,
title='PANGEA',
description='Pangea is a space that allows you to enter a English news article in text format and receive its traslated summary in Turkish! If you want to see our poster, check our files section and look for "pangea.png" :)',
inputs=gr.inputs.Textbox(lines = 5, label="Copy and paste a news article in English here!"),
theme='gstaff/sketch',
css='div {background-image:url("https://huggingface.co/spaces/ieuniversity/Pangea/blob/main/pangea.png");}',
thumbnail='ieuniversity/Pangea/pangea.png')
if __name__ == "__main__":
demo.launch()