Spaces:
Runtime error
Runtime error
Commit ·
6e2dcbb
1
Parent(s): d86d87f
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,9 @@ import keras
|
|
| 7 |
from huggingface_hub import from_pretrained_keras
|
| 8 |
#dfvds
|
| 9 |
|
| 10 |
-
model = from_pretrained_keras("hbpkillerX/low_light_img_enhancer", compile=False)
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def autocontrast(tensor, cutoff=0):
|
| 13 |
tensor = tf.cast(tensor, dtype=tf.float32)
|
|
|
|
| 7 |
from huggingface_hub import from_pretrained_keras
|
| 8 |
#dfvds
|
| 9 |
|
| 10 |
+
#model = from_pretrained_keras("hbpkillerX/low_light_img_enhancer", compile=False)
|
| 11 |
+
|
| 12 |
+
model= tf.saved_model.load("hbpkillerX/low_light_img_enhancer")
|
| 13 |
|
| 14 |
def autocontrast(tensor, cutoff=0):
|
| 15 |
tensor = tf.cast(tensor, dtype=tf.float32)
|