import gradio as gr from gradio.mix import Series translator = gr.Interface.load("Helsinki-NLP/opus-mt-ar-en", src="huggingface") # Translate it to English summarizer = gr.Interface.load("facebook/bart-large-cnn", src="huggingface") # Summarize it translator.launch()