user-agent commited on
Commit
0fdfbbc
1 Parent(s): f932259

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -101,6 +101,7 @@ def get_predicted_attributes(image_urls, category):
101
  for i, result in enumerate(common_result):
102
  common_result[i] = ", ".join([f"{x[0]}" for x in result])
103
 
 
104
  return common_result
105
 
106
 
@@ -114,6 +115,10 @@ iface = gr.Interface(
114
  gr.Textbox(label="Category")
115
  ],
116
  outputs="text" ,
 
 
 
 
117
  description="Add an image URL (starting with http/https) or upload a picture, and provide a list of labels separated by commas.",
118
  title="Full product flow"
119
  )
 
101
  for i, result in enumerate(common_result):
102
  common_result[i] = ", ".join([f"{x[0]}" for x in result])
103
 
104
+
105
  return common_result
106
 
107
 
 
115
  gr.Textbox(label="Category")
116
  ],
117
  outputs="text" ,
118
+ examples=[
119
+ [['https://d2q1sfov6ca7my.cloudfront.net/eyJidWNrZXQiOiAiaGljY3VwLWltYWdlLWhvc3RpbmciLCAia2V5IjogIlc4MDAwMDAwMTM0LU9SL1c4MDAwMDAwMTM0LU9SLTEuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogODAwLCAiaGVpZ2h0IjogMTIwMC4wLCAiZml0IjogIm91dHNpZGUifX19',
120
+ 'https://d2q1sfov6ca7my.cloudfront.net/eyJidWNrZXQiOiAiaGljY3VwLWltYWdlLWhvc3RpbmciLCAia2V5IjogIlc4MDAwMDAwMTM0LU9SL1c4MDAwMDAwMTM0LU9SLTIuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogODAwLCAiaGVpZ2h0IjogMTIwMC4wLCAiZml0IjogIm91dHNpZGUifX19',
121
+ 'https://d2q1sfov6ca7my.cloudfront.net/eyJidWNrZXQiOiAiaGljY3VwLWltYWdlLWhvc3RpbmciLCAia2V5IjogIlc4MDAwMDAwMTM0LU9SL1c4MDAwMDAwMTM0LU9SLTMuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogODAwLCAiaGVpZ2h0IjogMTIwMC4wLCAiZml0IjogIm91dHNpZGUifX19'], "women-top-shirt"]],
122
  description="Add an image URL (starting with http/https) or upload a picture, and provide a list of labels separated by commas.",
123
  title="Full product flow"
124
  )