Wootang01 commited on
Commit
71454c6
1 Parent(s): 1188794

model2=gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B") and gr.Parallel(model1, model2, model3, title="My First Text Generation", description="Input text and submit").launch()

Browse files

Please copy the names of language models carefully. In addition, in the parameters for gr.Parallel put the title in "quotes" and the description in "quotes." No need to create additional variables.

Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -1,14 +1,8 @@
1
  import gradio as gr
2
  from gradio.mix import Parallel
3
 
4
-
5
-
6
-
7
- Myfirstvariable="My First Text Generation"
8
- mylovelysecondvariable="Input text and submit"
9
-
10
  model1=gr.Interface.load("huggingface/gpt2")
11
- model2=gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.38")
12
  model3=gr.Interface.load("huggingace/bigscience/bloom-560m")
13
 
14
- gr.Parallel(model1, model2, model3, title=first, desription=secon).launch()
 
1
  import gradio as gr
2
  from gradio.mix import Parallel
3
 
 
 
 
 
 
 
4
  model1=gr.Interface.load("huggingface/gpt2")
5
+ model2=gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
6
  model3=gr.Interface.load("huggingace/bigscience/bloom-560m")
7
 
8
+ gr.Parallel(model1, model2, model3, title="My First Text Generation", description="Input text and submit").launch()