EricLam commited on
Commit
a5b7803
1 Parent(s): 79a0e30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -23
app.py CHANGED
@@ -1,28 +1,5 @@
1
 
2
 
3
- #functions, parameters and variables
4
- gr.Parallel(model1, model2, model3).launch()
5
-
6
-
7
- import gradio as gr
8
- from gradio import inputs
9
- from gradio.inputs import Textbox
10
- from gradio import outputs
11
- from transformers import pipeline
12
-
13
- title = "Next Sentence Generator"
14
- description = "Try this text generator!"
15
- examples = [
16
- ["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
17
- ["Zoe’s big break came when the godfather of Cantopop Sam Hui stumbled upon a YouTube video of Zoe singing."]
18
- ]
19
- generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
20
- generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
21
- generator1 = gr.Interface.load("huggingface/gpt2-large")
22
-
23
- gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence."), title=title, description=description, examples=examples).launch(share=False, enable_queue=True)
24
-
25
-
26
  import gradio as gr
27
 
28
  api = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
 
1
 
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  import gradio as gr
4
 
5
  api = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")