vumichien commited on
Commit
1f225af
·
1 Parent(s): bcff9ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -5,8 +5,6 @@ from streamlit_lottie import st_lottie
5
  from streamlit_option_menu import option_menu
6
  import requests
7
  import os
8
- # os.system('git clone https://github.com/lllyasviel/ControlNet.git')
9
- # os.chdir('/content/ControlNet')
10
 
11
  import cv2
12
  import einops
@@ -150,13 +148,10 @@ def main():
150
  a_prompt = st.text_input(label="Added Prompt", value='best quality, extremely detailed')
151
  n_prompt = st.text_input(label="Negative Prompt",
152
  value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
153
- # generate_button = st.button('Generate Image')
154
  generate_button = st.form_submit_button(label='Generate Image')
155
 
156
  if upload_file:
157
- # file_bytes = np.asarray(bytearray(upload_file.read()), dtype=np.uint8)
158
- # imageBGR = cv2.imdecode(file_bytes, cv2.IMREAD_COLOR)
159
- # input_image = cv2.cvtColor(imageBGR , cv2.COLOR_BGR2RGB)
160
  input_image = np.asarray(Image.open(upload_file).convert("RGB"))
161
  print("input_image", input_image.shape)
162
 
 
5
  from streamlit_option_menu import option_menu
6
  import requests
7
  import os
 
 
8
 
9
  import cv2
10
  import einops
 
148
  a_prompt = st.text_input(label="Added Prompt", value='best quality, extremely detailed')
149
  n_prompt = st.text_input(label="Negative Prompt",
150
  value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
151
+
152
  generate_button = st.form_submit_button(label='Generate Image')
153
 
154
  if upload_file:
 
 
 
155
  input_image = np.asarray(Image.open(upload_file).convert("RGB"))
156
  print("input_image", input_image.shape)
157