苏泓源 commited on
Commit
ba82b7a
Β·
1 Parent(s): 3d115fa
Files changed (2) hide show
  1. app.py +4 -4
  2. demo/NY.npy +0 -0
app.py CHANGED
@@ -62,11 +62,11 @@ with gr.Blocks() as demo:
62
  gr.Markdown("## FLP&IUMFLP Solver")
63
  with gr.Column():
64
  with gr.Row():
65
- data_json = gr.Textbox(label="Input json Data")
66
  data_file = gr.UploadButton(
67
- label="πŸ“ Upload a json file",
68
  file_count="multiple",
69
- file_types=[".json"])
70
  with gr.Row():
71
  boost = gr.Checkbox(label="Turbo Boost", value=False)
72
  btn2 = gr.Button(value="πŸš€ Generate")
@@ -82,7 +82,7 @@ with gr.Blocks() as demo:
82
 
83
  gr.Examples(
84
  examples=get_example(),
85
- inputs=[data_json],
86
  fn=plot_from_json,
87
  outputs=[actual_map, solution_map],
88
  )
 
62
  gr.Markdown("## FLP&IUMFLP Solver")
63
  with gr.Column():
64
  with gr.Row():
65
+ data_npy = gr.Textbox(label="Input")
66
  data_file = gr.UploadButton(
67
+ label="πŸ“ Upload a npy file",
68
  file_count="multiple",
69
+ file_types=[".npy"])
70
  with gr.Row():
71
  boost = gr.Checkbox(label="Turbo Boost", value=False)
72
  btn2 = gr.Button(value="πŸš€ Generate")
 
82
 
83
  gr.Examples(
84
  examples=get_example(),
85
+ inputs=[data_npy],
86
  fn=plot_from_json,
87
  outputs=[actual_map, solution_map],
88
  )
demo/NY.npy ADDED
The diff for this file is too large to render. See raw diff