ameerazam08 commited on
Commit
87f32d6
·
verified ·
1 Parent(s): 30ef09c

date time added

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -13,6 +13,7 @@ from PIL import Image
13
  from main import Upscale_CaseCade
14
  import spaces
15
  import os
 
16
 
17
  upscale_class=Upscale_CaseCade()
18
  # scale_fator=7
@@ -21,6 +22,8 @@ upscale_class=Upscale_CaseCade()
21
  @spaces.GPU
22
  def scale_image(image_pil,scale_factor):
23
  og,ups=upscale_class.upscale_image(image_pil=image_pil.convert("RGB"),scale_fator=scale_factor)
 
 
24
  return [ups]
25
  DESCRIPTION = "# Stable Cascade -> Super Resolution"
26
  DESCRIPTION += "\n<p style=\"text-align: center\">Unofficial demo for Cascade-Super Resolution <a href='https://huggingface.co/stabilityai/stable-cascade' target='_blank'>Stable Upscale Cascade</a>, a new high resolution image-to-image model by Stability AI, - <a href='https://huggingface.co/stabilityai/stable-cascade/blob/main/LICENSE' target='_blank'>non-commercial research license</a></p>"
 
13
  from main import Upscale_CaseCade
14
  import spaces
15
  import os
16
+ import datetime
17
 
18
  upscale_class=Upscale_CaseCade()
19
  # scale_fator=7
 
22
  @spaces.GPU
23
  def scale_image(image_pil,scale_factor):
24
  og,ups=upscale_class.upscale_image(image_pil=image_pil.convert("RGB"),scale_fator=scale_factor)
25
+ current_date_time = datetime.datetime.now()
26
+ print("Current Date and Time:", current_date_time)
27
  return [ups]
28
  DESCRIPTION = "# Stable Cascade -> Super Resolution"
29
  DESCRIPTION += "\n<p style=\"text-align: center\">Unofficial demo for Cascade-Super Resolution <a href='https://huggingface.co/stabilityai/stable-cascade' target='_blank'>Stable Upscale Cascade</a>, a new high resolution image-to-image model by Stability AI, - <a href='https://huggingface.co/stabilityai/stable-cascade/blob/main/LICENSE' target='_blank'>non-commercial research license</a></p>"