Johannes commited on
Commit
5b1f473
·
1 Parent(s): 48db972
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
  import matplotlib.pyplot as plt
3
  from sklearn.preprocessing import KBinsDiscretizer
4
- from PIL import Image
5
  import numpy as np
 
6
 
7
 
8
- def build_init_plot(img_array: np.ndarray) -> tuple[str, plt.Figure]:
9
  init_text = (f"The dimension of the image is {img_array.shape}\n"
10
  f"The data used to encode the image is of type {img_array.dtype}\n"
11
  f"The number of bytes taken in RAM is {img_array.nbytes}")
 
1
  import gradio as gr
2
  import matplotlib.pyplot as plt
3
  from sklearn.preprocessing import KBinsDiscretizer
 
4
  import numpy as np
5
+ from typing import Tuple
6
 
7
 
8
+ def build_init_plot(img_array: np.ndarray) -> Tuple[str, plt.Figure]:
9
  init_text = (f"The dimension of the image is {img_array.shape}\n"
10
  f"The data used to encode the image is of type {img_array.dtype}\n"
11
  f"The number of bytes taken in RAM is {img_array.nbytes}")