Falln87 commited on
Commit
dd4f35b
1 Parent(s): b6cdbfb

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -9
index.html CHANGED
@@ -22,16 +22,11 @@
22
  <gradio-file name="app.py" entrypoint>
23
  import gradio as gr
24
 
25
- from filters import as_gray
 
26
 
27
- def process(input_image):
28
- output_image = as_gray(input_image)
29
- return output_image
30
-
31
- demo = gr.Interface(
32
- process,
33
- "image",
34
- "image",
35
  examples=["lion.jpg", "logo.png"],
36
  )
37
 
 
22
  <gradio-file name="app.py" entrypoint>
23
  import gradio as gr
24
 
25
+ # Use a pipeline as a high-level helper
26
+ from transformers import pipeline
27
 
28
+ pipe = pipeline("text-generation", model="codeparrot/codeparrot")
29
+ demo = gr.ChatInterface(pipe,
 
 
 
 
 
 
30
  examples=["lion.jpg", "logo.png"],
31
  )
32