text_generator / app.py
MelodyKwok's picture
Update app.py
61cd43a
raw
history blame contribute delete
442 Bytes
import gradio as gr
from gradio.mix import Parallel
title="My First Text Generator"
description="Input text."
#variables, functions and parameters
model1 = gr.Interface.load("huggingface/gpt2")
model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
model3 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
#functions, parameters and variables
gr.Parallel(model1, model2, model3,title=title,description=description).launch()