Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio.mix import
|
3 |
|
4 |
title="My First Text Generation"
|
5 |
description="Input Text"
|
6 |
examples = [
|
7 |
["Once apon a time"]
|
8 |
-
["Dr Woo was teaching a coding workshop at Hong Kong True Light
|
9 |
]
|
10 |
-
gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
11 |
-
gr.Interface.load("huggingface/gpt2")
|
12 |
-
gr.Interface.load("huggingface/EleutherAI/gpt-neo-125M")
|
13 |
|
14 |
gr.Parallel(model1, model2, model3, title=title, description=description).launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from gradio.mix import Parallel
|
3 |
|
4 |
title="My First Text Generation"
|
5 |
description="Input Text"
|
6 |
examples = [
|
7 |
["Once apon a time"]
|
8 |
+
["Dr Woo was teaching a coding workshop at Hong Kong True Light College"]
|
9 |
]
|
10 |
+
model1=gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
11 |
+
model2=gr.Interface.load("huggingface/gpt2")
|
12 |
+
model3=gr.Interface.load("huggingface/EleutherAI/gpt-neo-125M")
|
13 |
|
14 |
gr.Parallel(model1, model2, model3, title=title, description=description).launch()
|