Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ if __name__ == "__main__":
|
|
18 |
gradio_app.launch(share=True)
|
19 |
"""
|
20 |
|
21 |
-
"""
|
22 |
import gradio as gr
|
23 |
|
24 |
from transformers import pipeline
|
@@ -42,18 +41,4 @@ with gr.Blocks() as demo:
|
|
42 |
examples = gr.Examples(examples=["SDE", "UX"],
|
43 |
inputs=[find])
|
44 |
|
45 |
-
demo.launch()
|
46 |
-
"""
|
47 |
-
|
48 |
-
import gradio as gr
|
49 |
-
|
50 |
-
description = "Story generation with GPT-2"
|
51 |
-
title = "Generate your own story"
|
52 |
-
examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
|
53 |
-
|
54 |
-
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
|
55 |
-
description=description,
|
56 |
-
examples=examples
|
57 |
-
)
|
58 |
-
|
59 |
-
interface.launch()
|
|
|
18 |
gradio_app.launch(share=True)
|
19 |
"""
|
20 |
|
|
|
21 |
import gradio as gr
|
22 |
|
23 |
from transformers import pipeline
|
|
|
41 |
examples = gr.Examples(examples=["SDE", "UX"],
|
42 |
inputs=[find])
|
43 |
|
44 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|