Spaces:
Build error
Build error
File size: 310 Bytes
abd6e8b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from src.predict import *
import gradio as gr
def predict(image):
return draw_image(create_map(prepare_image(image)), image.size)
if __name__ == "__main__":
iface = gr.Interface(
fn=predict,
inputs=gr.Image(type="pil"),
outputs=["image"]
)
iface.launch(share=True)
|