wootang04 commited on
Commit
7c21e4b
1 Parent(s): 2d0581d

Update app.py

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