test_gradio / app.py
John Smith
Update app.py
5a3935c
raw
history blame
357 Bytes
import gradio as gr
import os
def image_mod(image):
return image
demo = gr.Interface(
image_mod,
gr.Image(type="pil"),
"image",
flagging_options=["blurry", "incorrect", "other"],
examples=[
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg"),
],
)
if __name__ == "__main__":
demo.launch()