testshare / app.py
hmb's picture
hmb HF Staff
Create app.py
9c38512 verified
raw
history blame
446 Bytes
import os
import gradio as gr
def image_mod(image):
return image.rotate(45)
cheetah = os.path.join(os.path.dirname(__file__), "images/cheetah1.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__), "images/dog.png"),
])
if __name__ == "__main__":
demo.launch(max_file_size="70kb")