Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
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."],
|
@@ -13,5 +12,5 @@ from gradio import outputs
|
|
13 |
generator1 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
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
|
|
|
1 |
import gradio as gr
|
2 |
title = "Next Sentence Generator"
|
|
|
3 |
examples = [
|
4 |
["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
|
5 |
["Zoe only recently began writing songs."],
|
|
|
12 |
generator1 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
|
13 |
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
14 |
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
15 |
+
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence."),
|
16 |
+
title=title, examples=examples).launch()
|