Wootang01 commited on
Commit
05014cf
1 Parent(s): 86e052e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,17 +1,18 @@
1
  #level 1 text generator
2
  import gradio as gr
3
 
4
- gr.Interface.load("huggingface/bigscience/bloom-560m").launch()
 
 
 
 
 
5
 
6
 
7
  #import gradio as gr
8
  #from transformers import pipeline
9
 
10
  #generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
11
- #examples = [
12
- # ["Once upon a time, Dr. Woo was teaching computer programming in a school."],
13
- # ["Once upon a time, Dr. Woo was walking in a park. He "]
14
- #]
15
 
16
  #def generate(text):
17
  # result=generator(text, max_length=100, num_return_sequences=3)
 
1
  #level 1 text generator
2
  import gradio as gr
3
 
4
+ examples = [
5
+ ["Once upon a time, Dr. Woo was teaching computer programming in a school."],
6
+ ["Once upon a time, Dr. Woo was walking in a park. He "]
7
+ ]
8
+
9
+ gr.Interface.load("huggingface/bigscience/bloom-560m", title='My Second Text Generator', examples=examples).launch()
10
 
11
 
12
  #import gradio as gr
13
  #from transformers import pipeline
14
 
15
  #generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
 
 
 
 
16
 
17
  #def generate(text):
18
  # result=generator(text, max_length=100, num_return_sequences=3)