WeShop commited on
Commit
ca4a1bd
·
1 Parent(s): c778460
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: Transform poses in on-model photos
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: Transform poses in on-model photos
 
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -203,12 +203,9 @@ def load_description(file_path):
203
  return content
204
 
205
 
206
- def generate_image(main_image, text_description, did, request: gr.Request, oauth_token: gr.OAuthToken | None):
207
  if not did:
208
  did = str(uuid.uuid4())
209
- if not oauth_token:
210
- m = "Please log in to your Hugging Face account to use the features of this application."
211
- return gr.Warning(m), did
212
  if main_image is None:
213
  m = "Please upload both the main image and the background reference image before generating."
214
  return gr.Warning(m), did
 
203
  return content
204
 
205
 
206
+ def generate_image(main_image, text_description, did, request: gr.Request):
207
  if not did:
208
  did = str(uuid.uuid4())
 
 
 
209
  if main_image is None:
210
  m = "Please upload both the main image and the background reference image before generating."
211
  return gr.Warning(m), did