WeShop commited on
Commit
eb39cff
·
1 Parent(s): 4a47e2f
Files changed (2) hide show
  1. README.md +0 -2
  2. app.py +1 -4
README.md CHANGED
@@ -9,8 +9,6 @@ app_file: app.py
9
  pinned: false
10
  license: other
11
  short_description: Enhance hand features for flawless, natural-looking images
12
-
13
- hf_oauth: true
14
  ---
15
 
16
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  license: other
11
  short_description: Enhance hand features for flawless, natural-looking images
 
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -223,12 +223,9 @@ def image_to_base64(image):
223
  return f"data:image/png;base64,{img_base64}"
224
 
225
 
226
- def generate_image(edit_image_infos, did, request: gr.Request, oauth_token: gr.OAuthToken | None):
227
  if not did:
228
  did = str(uuid.uuid4())
229
- if not oauth_token:
230
- m = "Please log in to your Hugging Face account to use the features of this application."
231
- return gr.Warning(m), did
232
  if edit_image_infos is None or not isinstance(edit_image_infos, dict):
233
  m = "Please upload the main image before generating."
234
  return gr.Warning(m), did
 
223
  return f"data:image/png;base64,{img_base64}"
224
 
225
 
226
+ def generate_image(edit_image_infos, did, request: gr.Request):
227
  if not did:
228
  did = str(uuid.uuid4())
 
 
 
229
  if edit_image_infos is None or not isinstance(edit_image_infos, dict):
230
  m = "Please upload the main image before generating."
231
  return gr.Warning(m), did