Spaces:
Running
Running
Update index.html
Browse files21 unmodified lines222324252526272728293031323334282930313221 unmodified lines <gradio-file name="app.py" entrypoint>import gradio as gr
from filters import as_gray# Use a pipeline as a high-level helperfrom transformers import pipeline
def process(input_image): output_image = as_gray(input_image) return output_image
demo = gr.Interface( process, "image", "image",pipe = pipeline("text-generation", model="codeparrot/codeparrot")demo = gr.ChatInterface(pipe, examples=["lion.jpg", "logo.png"],)
index.html+4-9