Spaces:
Runtime error
Runtime error
import gradio as gr | |
import os | |
def image_mod(image): | |
return image.rotate(45) | |
cheetah = os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg") | |
demo = gr.Interface(image_mod, gr.Image(type="pil", value=cheetah), "image", | |
flagging_options=["blurry", "incorrect", "other"], examples=[ | |
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg | |
"), | |
if __name__ == "__main__": | |
demo.launch() | |