Amirhosein
input
d453a84
raw
history blame contribute delete
690 Bytes
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()