File size: 357 Bytes
9c38512
 
 
 
 
 
 
 
 
10d2a69
9c38512
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os

import gradio as gr


def image_mod(image):
    return image.rotate(45)


demo = gr.Interface(image_mod, gr.Image(type="pil"), "image",
    flagging_options=["blurry", "incorrect", "other"], examples=[
        os.path.join(os.path.dirname(__file__), "images/dog.png"),
        ])

if __name__ == "__main__":
    demo.launch(max_file_size="70kb")