ZhengPeng7 commited on
Commit
5b26e24
·
1 Parent(s): 4308d99

Update the order of model options by the superiority and popularity of them.

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. app_local.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def predict(images, resolution, weights_file):
175
  examples = [[_] for _ in glob('examples/*')][:]
176
  # Add the option of resolution in a text box.
177
  for idx_example, example in enumerate(examples):
178
- if 'My_' in example:
179
  example_resolution = '2048x2048'
180
  else:
181
  example_resolution = '1024x1024'
 
175
  examples = [[_] for _ in glob('examples/*')][:]
176
  # Add the option of resolution in a text box.
177
  for idx_example, example in enumerate(examples):
178
+ if 'My_' in example[0]:
179
  example_resolution = '2048x2048'
180
  else:
181
  example_resolution = '1024x1024'
app_local.py CHANGED
@@ -175,7 +175,7 @@ def predict(images, resolution, weights_file):
175
  examples = [[_] for _ in glob('examples/*')][:]
176
  # Add the option of resolution in a text box.
177
  for idx_example, example in enumerate(examples):
178
- if 'My_' in example:
179
  example_resolution = '2048x2048'
180
  else:
181
  example_resolution = '1024x1024'
 
175
  examples = [[_] for _ in glob('examples/*')][:]
176
  # Add the option of resolution in a text box.
177
  for idx_example, example in enumerate(examples):
178
+ if 'My_' in example[0]:
179
  example_resolution = '2048x2048'
180
  else:
181
  example_resolution = '1024x1024'