Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
title = "Next Sentence Generator"
|
3 |
description = "Enter a setnence. The application will add a sentence to your sentence."
|
|
|
|
|
|
|
|
|
|
|
4 |
from gradio import inputs
|
5 |
from gradio.inputs import Textbox
|
6 |
from gradio import outputs
|
@@ -9,4 +14,4 @@ generator1 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
|
9 |
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
10 |
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
11 |
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence"),
|
12 |
-
title=title).launch()
|
|
|
1 |
import gradio as gr
|
2 |
title = "Next Sentence Generator"
|
3 |
description = "Enter a setnence. The application will add a sentence to your sentence."
|
4 |
+
examples = [
|
5 |
+
["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
|
6 |
+
["Zoe only recently began writing songs."],
|
7 |
+
["Zoe’s big break came when the godfather of Cantopop Sam Hui stumbled upon a YouTube video of Zoe singing."]
|
8 |
+
]
|
9 |
from gradio import inputs
|
10 |
from gradio.inputs import Textbox
|
11 |
from gradio import outputs
|
|
|
14 |
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
15 |
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
16 |
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence"),
|
17 |
+
title=title, examples=examples, description=description).launch()
|