gbarbadillo commited on
Commit
fa0e676
1 Parent(s): 96e3d35

moved imports to the top

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from ip_adapter.ip_adapter_faceid import IPAdapterFaceIDPlus
5
  import cv2
6
  from insightface.app import FaceAnalysis
7
  from insightface.utils import face_align
8
-
9
 
10
  base_model_path = "SG161222/Realistic_Vision_V4.0_noVAE"
11
  vae_model_path = "stabilityai/sd-vae-ft-mse"
@@ -67,7 +67,7 @@ def generate_images(img_filepath, prompt, n_images=3,
67
  )
68
  return [images, Image.fromarray(face_image[..., [2, 1, 0]])]
69
 
70
- import gradio as gr
71
  with gr.Blocks() as demo:
72
  gr.Markdown(
73
  """
 
5
  import cv2
6
  from insightface.app import FaceAnalysis
7
  from insightface.utils import face_align
8
+ import gradio as gr
9
 
10
  base_model_path = "SG161222/Realistic_Vision_V4.0_noVAE"
11
  vae_model_path = "stabilityai/sd-vae-ft-mse"
 
67
  )
68
  return [images, Image.fromarray(face_image[..., [2, 1, 0]])]
69
 
70
+
71
  with gr.Blocks() as demo:
72
  gr.Markdown(
73
  """