hmb's picture
hmb HF Staff
Update run.py
897bb34 verified
Raw
History Blame Contribute Delete
375 Bytes
from typing import Any
import gradio as gr
def fetch_media(_: str = "") -> Any:
return {
"orig_name": "lion.jpg",
"url": "https://gradio-static-files.s3.us-west-2.amazonaws.com/lion.jpg",
"mime_type": "image/jpeg",
}
demo = gr.Workflow(graph="workflow.json", bind={"fetch_media": fetch_media})
if __name__ == "__main__":
demo.launch()