File size: 901 Bytes
c0f5412
f257691
aa1561b
 
c0f5412
ec9d3da
b558905
1b21b44
b558905
 
 
ec9d3da
 
 
33e39f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()