File size: 377 Bytes
a4fcc7e
9c47ef4
a4fcc7e
e77f816
9c47ef4
c9f40d2
6066420
bcaf4b9
 
2347bce
 
 
 
 
 
 
a311255
2347bce
 
cb9b710
 
2347bce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
import os


def image_mod(image):
    print("Hello world")
    return 


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()