mervenoyan commited on
Commit
547c840
1 Parent(s): 2891c72

initial commit

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +10 -0
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Story Viz
3
- emoji: 🌖
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
 
1
  ---
2
  title: Story Viz
3
+ emoji: 🧝
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+ from gradio.mix import Series
4
+ description = "Visual story generation with GPT-2 and VQGAN"
5
+ story_gen = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
6
+ description=description,
7
+ examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
8
+ )
9
+ image_gen = gr.Interface.load("huggingface/flax-community/dalle-mini")
10
+ Series(story_gen, image_gen, inputs = gr.inputs.Textbox(lines = 20)).launch()