aarbelle commited on
Commit
a978d8d
1 Parent(s): c6a9d9e

temporary fix

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -33,7 +33,7 @@ min_len = 1e10
33
  for d in domains:
34
  with open(os.path.join(feat_dir, f'src_{d}_{shots}.pkl'), 'rb') as fp:
35
  dst_data_dict[d] = pickle.load(fp)
36
- min_len = min(min_len, len(dst_data_dict[d][0]))
37
 
38
  def query(query_index, query_domain):
39
  dst_data = dst_data_dict[query_domain]
@@ -59,7 +59,8 @@ with demo:
59
  gr.Markdown('## Select Query Domain: ')
60
  domain_drop = gr.Dropdown(domains)
61
  # domain_select_button = gr.Button("Select Domain")
62
- slider = gr.Slider(0, min_len)
 
63
  image_button = gr.Button("Run")
64
 
65
  with gr.Row():
 
33
  for d in domains:
34
  with open(os.path.join(feat_dir, f'src_{d}_{shots}.pkl'), 'rb') as fp:
35
  dst_data_dict[d] = pickle.load(fp)
36
+ # min_len = min(min_len, len(dst_data_dict[d][0]))
37
 
38
  def query(query_index, query_domain):
39
  dst_data = dst_data_dict[query_domain]
 
59
  gr.Markdown('## Select Query Domain: ')
60
  domain_drop = gr.Dropdown(domains)
61
  # domain_select_button = gr.Button("Select Domain")
62
+ # slider = gr.Slider(0, min_len)
63
+ slider = gr.Slider(0, 10000)
64
  image_button = gr.Button("Run")
65
 
66
  with gr.Row():