Spaces:
Runtime error
Runtime error
randommm
commited on
Commit
Β·
8df3023
1
Parent(s):
5d537f3
update
Browse files
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}.
|
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
|
298 |
file_count="single",
|
299 |
-
file_types=[".
|
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(),
|