Spaces:
Running
Running
Update index.html
Browse files- 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 |
-
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 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 |
|