Spaces:
Running
Running
Update index.html
Browse files- 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/
|
39 |
|
40 |
async def classify(text):
|
41 |
return await pipe(text)
|
42 |
|
43 |
-
demo = gr.Interface(classify, "textbox", "json", examples=["
|
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 |
|