Spaces:
Runtime error
Runtime error
Correct spacing and spelling
Browse filesWhen writing a function, do not put a space between words and a full stop. For example gr.Interface and gradio.mix are correct but gr. Interface and gradio . mix are wrong.
In addition, carefully spell gpt2.
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio
|
3 |
|
4 |
title="My First Generator"
|
5 |
desciption="Input text and summit."
|
6 |
|
7 |
-
model1=gr.Interface.
|
8 |
-
model2=gr.Interface.
|
9 |
-
model3=gr.Interface.
|
10 |
|
11 |
gr.Parallel(model1,model2,model3, title=title, description=descrioption).launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from gradio.mix import Parallel
|
3 |
|
4 |
title="My First Generator"
|
5 |
desciption="Input text and summit."
|
6 |
|
7 |
+
model1=gr.Interface.load("huggingface/gpt2")
|
8 |
+
model2=gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
9 |
+
model3=gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
10 |
|
11 |
gr.Parallel(model1,model2,model3, title=title, description=descrioption).launch()
|