File size: 421 Bytes
c0f5412
aa1561b
 
 
c0f5412
3f09630
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
from gradio.mix import Parallel, Series
summarization = gr.Interface.load("models/ieuniversity/pangea_summarization_model")
translation = gr.Interface.load("models/ieuniversity/pangea_translation_model")

Series(summarization, translation,
       inputs =
            gr.Textbox(
                lines = 1,
                label="Copy a news article in English below."),
       theme = "red").launch()