aeon12 commited on
Commit
f5efab2
·
verified ·
1 Parent(s): 6fe4a21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
  from PIL import Image
7
  import io
8
 
9
- API_KEY = os.environ.get('RUNPOD_API_KEY')
10
  API_URL = 'https://api.runpod.ai/v2/31jyh9kh7nwyga'
11
 
12
  cloth_images = [
@@ -122,7 +122,6 @@ with gr.Blocks() as demo:
122
  height=500
123
  )
124
  cloth_selected = gr.Textbox(label="Selected Clothing URL", visible=False)
125
- cloth_preview = gr.Image(label="Selected Clothing Preview")
126
  cloth_upload = gr.Image(label="Or Upload Custom Clothing")
127
 
128
  with gr.Column():
@@ -134,7 +133,6 @@ with gr.Blocks() as demo:
134
  height=500
135
  )
136
  user_selected = gr.Textbox(label="Selected User Image URL", visible=False)
137
- user_preview = gr.Image(label="Selected User Image Preview")
138
  user_upload = gr.Image(label="Or Upload Custom User Image")
139
 
140
  with gr.Row():
@@ -158,9 +156,6 @@ with gr.Blocks() as demo:
158
  outputs=[user_selected]
159
  )
160
 
161
- cloth_selected.change(lambda x: x, inputs=cloth_selected, outputs=cloth_preview)
162
- user_selected.change(lambda x: x, inputs=user_selected, outputs=user_preview)
163
-
164
  generate_button.click(
165
  tryon_interface,
166
  inputs=[cloth_selected, cloth_upload, user_selected, user_upload, scene_selection, custom_scene],
 
6
  from PIL import Image
7
  import io
8
 
9
+ API_KEY = 'N80HWHVG3DV8URRNYZY382UPSHP1N8G1SNPYG0E9'
10
  API_URL = 'https://api.runpod.ai/v2/31jyh9kh7nwyga'
11
 
12
  cloth_images = [
 
122
  height=500
123
  )
124
  cloth_selected = gr.Textbox(label="Selected Clothing URL", visible=False)
 
125
  cloth_upload = gr.Image(label="Or Upload Custom Clothing")
126
 
127
  with gr.Column():
 
133
  height=500
134
  )
135
  user_selected = gr.Textbox(label="Selected User Image URL", visible=False)
 
136
  user_upload = gr.Image(label="Or Upload Custom User Image")
137
 
138
  with gr.Row():
 
156
  outputs=[user_selected]
157
  )
158
 
 
 
 
159
  generate_button.click(
160
  tryon_interface,
161
  inputs=[cloth_selected, cloth_upload, user_selected, user_upload, scene_selection, custom_scene],