ZhengPeng7 commited on
Commit
d719afe
·
1 Parent(s): 0711aae

Add the missing model_choice in the definition of url examples.

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. app_local.py +1 -1
app.py CHANGED
@@ -267,7 +267,7 @@ examples_url = [
267
  ['https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg'],
268
  ]
269
  for idx_example_url, example_url in enumerate(examples_url):
270
- examples_url[idx_example_url].append('1024x1024')
271
 
272
  descriptions = ('Upload a picture, our model will extract a highly accurate segmentation of the subject in it.\n)'
273
  ' The resolution used in our training was `1024x1024`, which is the suggested resolution to obtain good results! `2048x2048` is suggested for BiRefNet_HR.\n'
 
267
  ['https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg'],
268
  ]
269
  for idx_example_url, example_url in enumerate(examples_url):
270
+ examples_url[idx_example_url] = examples_url[idx_example_url] + ['1024x1024', 'General']
271
 
272
  descriptions = ('Upload a picture, our model will extract a highly accurate segmentation of the subject in it.\n)'
273
  ' The resolution used in our training was `1024x1024`, which is the suggested resolution to obtain good results! `2048x2048` is suggested for BiRefNet_HR.\n'
app_local.py CHANGED
@@ -263,7 +263,7 @@ examples_url = [
263
  ['https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg'],
264
  ]
265
  for idx_example_url, example_url in enumerate(examples_url):
266
- examples_url[idx_example_url].append('1024x1024')
267
 
268
  descriptions = ('Upload a picture, our model will extract a highly accurate segmentation of the subject in it.\n)'
269
  ' The resolution used in our training was `1024x1024`, which is the suggested resolution to obtain good results! `2048x2048` is suggested for BiRefNet_HR.\n'
 
263
  ['https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg'],
264
  ]
265
  for idx_example_url, example_url in enumerate(examples_url):
266
+ examples_url[idx_example_url] = examples_url[idx_example_url] + ['1024x1024', 'General']
267
 
268
  descriptions = ('Upload a picture, our model will extract a highly accurate segmentation of the subject in it.\n)'
269
  ' The resolution used in our training was `1024x1024`, which is the suggested resolution to obtain good results! `2048x2048` is suggested for BiRefNet_HR.\n'