Spaces:
Running
on
Zero
Running
on
Zero
import gradio as gr | |
from PIL import Image | |
import upscale_image | |
def gradio_upscale(image): | |
"""画像を反転させる関数""" | |
return uscale_image.execute(Image) | |
if __name__ == "__main__": | |
# Gradio UIの設定 | |
iface = gr.Interface( | |
fn=reverse_image, | |
inputs="image", | |
outputs="image", | |
title="Image Reverser", | |
description="Upload an image to see it reversed.", | |
) | |
# インターフェースを公開 | |
iface.launch(share=True) | |