abidlabs's picture
abidlabs HF Staff
Update app.py
84d21ef
raw
history blame contribute delete
258 Bytes
import gradio as gr
generator = gr.Interface.load("huggingface/gpt2")
translator = gr.Interface.load("huggingface/t5-small")
gr.Series(generator, translator).launch() # this demo generates text, then translates it to German, and outputs the final result.