Spaces:
Runtime error
Runtime error
File size: 690 Bytes
eb9da7f 511d264 d0ecda7 eb9da7f d453a84 1bc75a5 eb9da7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from axis_finder import gradio_inference
def run_axis_finder(input_str):
input_str = input_str.split(' ')
print(input_str)
return gradio_inference(input_str[0], input_str[1], input_str[2])
demo = gr.Interface(
run_axis_finder,
gr.Textbox(value="""0.85 (44,119) 2
Road Access[0.1:0.9], Starting Point(y,x), Carbon Prefix[0:7]
Road Access setups the ratio of accessibility for each divided two parts.
Starting Point is a tuple of pixel location for the algorithm to start its road construction.
Carbon Weight define the pririty of cut trees (green pixels) in genetic algorithm.
double check for unwanted white spaces!"""),
"image")
demo.launch() |