Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from gradio.mix import Parallel
|
3 |
+
|
4 |
+
title="My First Text Generator"
|
5 |
+
description="Input text."
|
6 |
+
|
7 |
+
#variables, functions and parameters
|
8 |
+
model1 = gr.Interface.load("huggingface/gpt2")
|
9 |
+
model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
10 |
+
model3 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
11 |
+
|
12 |
+
#functions, parameters and variables
|
13 |
+
gr.Parallel(model1, model2, model3,title=title,description=description).launch()
|
14 |
+
|
15 |
+
|