Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from gradio import
|
| 3 |
-
from gradio.inputs import Textbox
|
| 4 |
-
from gradio import outputs
|
| 5 |
-
from transformers import pipeline
|
| 6 |
|
| 7 |
-
title = "
|
| 8 |
-
description = "
|
| 9 |
-
examples = [
|
| 10 |
-
["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
|
| 11 |
-
["Zoe’s big break came when the godfather of Cantopop Sam Hui stumbled upon a YouTube video of Zoe singing."]
|
| 12 |
-
]
|
| 13 |
-
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
| 14 |
-
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
| 15 |
-
generator1 = gr.Interface.load("huggingface/gpt2-large")
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.mix import Parallel
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
+
title = "My First Text Generator"
|
| 5 |
+
description = "input text and submit."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
model1=gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
| 8 |
+
model3=gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
| 9 |
+
|
| 10 |
+
gr.Parallel(model1 , model3, title=title,description=description).launch()
|