Spaces:
Runtime error
Runtime error
import gradio as gr | |
from threshold_methods import threshold_methods | |
import cv2 | |
new_outputs = [ | |
gr.outputs.Image(type="numpy", label="Output Image") | |
] | |
def show_image(): | |
img = cv2.imread('huggingface.png') | |
return img | |
HuggingFace = gr.Interface( | |
fn=show_image, | |
live=True, | |
inputs=[], | |
outputs=new_outputs, | |
hide_controls=True, | |
hide_inputs=True, | |
show_submit_buttom=False, | |
show_clear=False, | |
show_generate=False, | |
allow_flagging=False, | |
title="https://huggingface.co/spaces/pirahansiah/ComputerVision", | |
) | |
gr.TabbedInterface( | |
[HuggingFace,threshold_methods], | |
tab_names=['HuggingFace','Thresholding Image Segmentation'] | |
).queue().launch() | |