gbarbadillo commited on
Commit
092c8f9
1 Parent(s): 66a85d4

added datetime to logging

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from insightface.app import FaceAnalysis
7
  from insightface.utils import face_align
8
  import gradio as gr
9
  from huggingface_hub import hf_hub_download
10
-
11
 
12
 
13
  def download_models():
@@ -72,7 +72,7 @@ def generate_images(prompt, img_filepath,
72
  img_prompt_scale=0.5,
73
  num_inference_steps=30,
74
  seed=None, n_images=1):
75
- print(prompt)
76
  image = cv2.imread(img_filepath)
77
  faces = app.get(image)
78
 
 
7
  from insightface.utils import face_align
8
  import gradio as gr
9
  from huggingface_hub import hf_hub_download
10
+ from datetime import datetime
11
 
12
 
13
  def download_models():
 
72
  img_prompt_scale=0.5,
73
  num_inference_steps=30,
74
  seed=None, n_images=1):
75
+ print(f'{datetime.now().strftime("%Y/%m/%d %H:%M:%S")}: {prompt}')
76
  image = cv2.imread(img_filepath)
77
  faces = app.get(image)
78