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

#1
by Wootang01 - opened
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,11 +1,8 @@
1
  import gradio as gr
2
  from gradio.mix import Parallel
3
 
4
- myfirstvariable="My First Text Generator"
5
- mylovelysecondvariable="Input text and submit."
6
-
7
  model1=gr.Interface.load("huggingface/gpt2")
8
- model2=gr.interface.load("huggingface/EleutherAI/gpt-neo-1.38")
9
- model3=gr.interface.load("huggingface/bigscience/bloom-560m")
10
 
11
- gr.Parallel(model1, model2, model3, title=first, description=second).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.38")
6
+ model3=gr.Interface.load("huggingface/bigscience/bloom-560m")
7
 
8
+ gr.Parallel(model1, model2, model3, title="My First Text Generator", description="Input text and submit.").launch()