randommm commited on
Commit
8df3023
Β·
1 Parent(s): 5d537f3
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -108,7 +108,7 @@ def demo_plot(city, facility):
108
  all_facility[i] = False
109
 
110
  city_name = city.replace(' ', '_')
111
- data = np.loadtxt(f'demo/{city_name}.npy')
112
  positions = data[:, :2]
113
  demands = data[:, 2:5]
114
  actual_facility = data[:, 5:8]
@@ -294,9 +294,9 @@ with gr.Blocks() as demo:
294
  with gr.Row():
295
  data_npy = gr.Textbox(label="Input")
296
  data_file = gr.UploadButton(
297
- label="πŸ“ Upload a npy file",
298
  file_count="single",
299
- file_types=[".npy"])
300
  with gr.Row():
301
  gr.Examples(
302
  examples=get_example(),
 
108
  all_facility[i] = False
109
 
110
  city_name = city.replace(' ', '_')
111
+ data = np.loadtxt(f'demo/{city_name}.txt')
112
  positions = data[:, :2]
113
  demands = data[:, 2:5]
114
  actual_facility = data[:, 5:8]
 
294
  with gr.Row():
295
  data_npy = gr.Textbox(label="Input")
296
  data_file = gr.UploadButton(
297
+ label="πŸ“ Upload a txt file",
298
  file_count="single",
299
+ file_types=[".txt"])
300
  with gr.Row():
301
  gr.Examples(
302
  examples=get_example(),