Spaces:
Runtime error
Runtime error
Added Union import to fix import error
Browse files
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 |
|