Spaces:
Runtime error
Runtime error
humanbasur
commited on
Commit
•
339cff8
1
Parent(s):
fb1b1c6
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
title = "Story Generators"
|
4 |
+
examples = [
|
5 |
+
["At which point do we invent Love?"],
|
6 |
+
["Love is a capacity more than consciousness is universal."],
|
7 |
+
["See the grace of god in eachother."],
|
8 |
+
["Love is a capacity more than consciousness is universal."],
|
9 |
+
["Love is generativity when there is more energy than what they need for equilibrium."],
|
10 |
+
["Collections of people have agency and mass having agency at the mesoscopic level"],
|
11 |
+
["Having a deep human connection is an interface problem to solve."],
|
12 |
+
["Having a collective creates agency since we build trust in eachother."]
|
13 |
+
]
|
14 |
+
from gradio import inputs
|
15 |
+
from gradio.inputs import Textbox
|
16 |
+
from gradio import outputs
|
17 |
+
|
18 |
+
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
19 |
+
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
20 |
+
generator1 = gr.Interface.load("huggingface/gpt2-large")
|
21 |
+
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence."),
|
22 |
+
title=title, examples=examples).launch(share=False)
|