kphfrepo commited on
Commit
07ef5dd
·
verified ·
1 Parent(s): 2785520

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -12,8 +12,10 @@ def run_benchmark(storage_choice, file_size_mb, block_size_kb):
12
  # Ensure directory exists
13
  if storage_choice == "Local Data Space (/local_data)":
14
  target_dir = "/local_data"
15
- elif storage_choice == "Bucket Data Space (/bucket_data)":
16
- target_dir = "/bucket_data"
 
 
17
  else:
18
  target_dir = "/local_data"
19
 
@@ -121,10 +123,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
121
  with gr.Column():
122
  storage_choice = gr.Radio(
123
  label="Select Target Storage Volume",
124
- choices=["Local Data Space (/local_data)", "Bucket Data Space (/bucket_data)"],
125
  value="Local Data Space (/local_data)",
126
  info="Switches underlying workspace mounts directly."
127
- )
128
  # test_path = gr.Textbox(
129
  # label="Target Directory",
130
  # value=DEFAULT_DIR,
 
12
  # Ensure directory exists
13
  if storage_choice == "Local Data Space (/local_data)":
14
  target_dir = "/local_data"
15
+ elif storage_choice == "Same Acc Bucket Data Space (/sameAcc_bucket_data)":
16
+ target_dir = "/sameAcc_bucket_data"
17
+ elif storage_choice == "Different Acc Bucket Data Space (/diffAcc_bucket_data)":
18
+ target_dir = "/diffAcc_bucket_data"
19
  else:
20
  target_dir = "/local_data"
21
 
 
123
  with gr.Column():
124
  storage_choice = gr.Radio(
125
  label="Select Target Storage Volume",
126
+ choices=["Local Data Space (/local_data)", "Same Acc Bucket Data Space (/sameAcc_bucket_data)", "Different Acc Bucket Data Space (/diffAcc_bucket_data)"],
127
  value="Local Data Space (/local_data)",
128
  info="Switches underlying workspace mounts directly."
129
+ )
130
  # test_path = gr.Textbox(
131
  # label="Target Directory",
132
  # value=DEFAULT_DIR,