sab commited on
Commit
37755b5
·
1 Parent(s): 8d918ad
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,12 +7,12 @@ from io import BytesIO
7
  import numpy as np
8
  from gradio_imageslider import ImageSlider # Assicurati di avere questa libreria installata
9
  from loadimg import load_img # Assicurati che questa funzione sia disponibile
 
10
  from dotenv import load_dotenv
11
 
12
  # Carica le variabili di ambiente dal file .env
13
  load_dotenv()
14
 
15
-
16
  def numpy_to_pil(image):
17
  """Convert a numpy array to a PIL Image."""
18
  if image.dtype == np.uint8: # Most common case
@@ -42,7 +42,6 @@ chameleon = load_img("elephant.jpg", output_type="pil")
42
 
43
  image = gr.Image(label="Upload a photo")
44
  output_slider = ImageSlider(label="Processed photo", type="pil")
45
-
46
  demo = gr.Interface(
47
  fn=process_image,
48
  inputs=image,
 
7
  import numpy as np
8
  from gradio_imageslider import ImageSlider # Assicurati di avere questa libreria installata
9
  from loadimg import load_img # Assicurati che questa funzione sia disponibile
10
+
11
  from dotenv import load_dotenv
12
 
13
  # Carica le variabili di ambiente dal file .env
14
  load_dotenv()
15
 
 
16
  def numpy_to_pil(image):
17
  """Convert a numpy array to a PIL Image."""
18
  if image.dtype == np.uint8: # Most common case
 
42
 
43
  image = gr.Image(label="Upload a photo")
44
  output_slider = ImageSlider(label="Processed photo", type="pil")
 
45
  demo = gr.Interface(
46
  fn=process_image,
47
  inputs=image,