MBA98 commited on
Commit
05a8088
1 Parent(s): 07ad184

Added Union import to fix import error

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -156,6 +156,7 @@ import tensorflow as tf
156
  import numpy as np
157
  import tensorflow.keras.backend as K
158
  from tensorflow.keras.metrics import Metric
 
159
  FloatTensorLike = Union[tf.Tensor, float, np.float16, np.float32, np.float64]
160
  AcceptableDTypes = Union[tf.DType, np.dtype, type, int, str, None]
161
 
 
156
  import numpy as np
157
  import tensorflow.keras.backend as K
158
  from tensorflow.keras.metrics import Metric
159
+ from typing import Union
160
  FloatTensorLike = Union[tf.Tensor, float, np.float16, np.float32, np.float64]
161
  AcceptableDTypes = Union[tf.DType, np.dtype, type, int, str, None]
162