Akjava's picture
update
7ee85b7
raw
history blame contribute delete
519 Bytes
import gradio as gr
from PIL import Image
import upscale_image
@spaces.GPU(duration=120)
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)