schoginitoys commited on
Commit
5e07bcf
·
1 Parent(s): 59e9fb7
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -1,12 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
 
 
3
  description = "Story generation with GPT-2"
4
  title = "Generate your own story"
5
  examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
6
 
7
- interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
 
 
8
  description=description,
9
  examples=examples
10
  )
11
 
12
  interface.launch()
 
 
1
+ #import gradio as gr
2
+
3
+ #description = "Story generation with GPT-2"
4
+ #title = "Generate your own story"
5
+ #examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
6
+
7
+ #interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
8
+ # description=description,
9
+ # examples=examples
10
+ #)
11
+
12
+ #interface.launch()
13
+
14
  import gradio as gr
15
 
16
+ #gr.Interface.load("models/NousResearch/Yarn-Mistral-7b-128k").launch()
17
+
18
  description = "Story generation with GPT-2"
19
  title = "Generate your own story"
20
  examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
21
 
22
+ #interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
23
+
24
+ gr.Interface.load("models/NousResearch/Yarn-Mistral-7b-128k",
25
  description=description,
26
  examples=examples
27
  )
28
 
29
  interface.launch()
30
+