reach-vb HF Staff commited on
Commit
0a34337
·
1 Parent(s): 91b4f9b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -35,12 +35,12 @@ import gradio as gr
35
 
36
  transformers = await import_transformers_js()
37
  pipeline = transformers.pipeline
38
- pipe = await pipeline('text-generation', 'Xenova/distilgpt2')
39
 
40
  async def classify(text):
41
  return await pipe(text)
42
 
43
- demo = gr.Interface(classify, "textbox", "json", examples=["It's a happy day in the neighborhood", "I'm an evil penguin", "It wasn't a bad film."])
44
  demo.launch()
45
  </gradio-file>
46
 
 
35
 
36
  transformers = await import_transformers_js()
37
  pipeline = transformers.pipeline
38
+ pipe = await pipeline('text-generation', 'Xenova/llama2.c-stories110M')
39
 
40
  async def classify(text):
41
  return await pipe(text)
42
 
43
+ demo = gr.Interface(classify, "textbox", "json", examples=["I was walking in a nice neighborhood the other day ", "I'm an evil penguin and I", "It wasn't a bad film but"])
44
  demo.launch()
45
  </gradio-file>
46