Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
["Once upon a time, Dr. Woo was teaching computer programming in a school."],
|
| 7 |
-
["Once upon a time, Dr. Woo was walking in a park. He "]
|
| 8 |
-
]
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
| 1 |
+
#libraries
|
| 2 |
import gradio as gr
|
| 3 |
+
from gradio.mix import Parallel
|
| 4 |
|
| 5 |
+
title="My First Text Generator"
|
| 6 |
+
description="Input text."
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
#variables, functions and parameters
|
| 9 |
+
model1 = gr.Interface.load("huggingface/gpt2")
|
| 10 |
+
model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
| 11 |
+
model3 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
| 12 |
|
| 13 |
+
#functions, parameters and variables
|
| 14 |
+
gr.Parallel(model1, model2, model3,title=title,description=description).launch()
|