Spaces:
Runtime error
Runtime error
Commit
·
a844295
1
Parent(s):
e0bf326
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def lowlight(image_path):
|
|
31 |
data_lowlight = data_lowlight.cpu().unsqueeze(0)
|
32 |
|
33 |
DCE_net = model.enhance_net_nopool().cpu()
|
34 |
-
DCE_net.load_state_dict(torch.load('
|
35 |
start = time.time()
|
36 |
_,enhanced_image,_ = DCE_net(data_lowlight)
|
37 |
|
@@ -65,7 +65,7 @@ article = "<p style='text-align: center'><a href='https://' target='_blank'>Comp
|
|
65 |
|
66 |
examples = [['data/test_data//01.jpg'], ['data/test_data//02.jpg'], ['data/test_data//03.jpg'],]
|
67 |
gr.Interface(
|
68 |
-
|
69 |
[gr.inputs.Image(type="pil", label="Input")],
|
70 |
gr.outputs.Image(type="file", label="Output"),
|
71 |
title=title,
|
|
|
31 |
data_lowlight = data_lowlight.cpu().unsqueeze(0)
|
32 |
|
33 |
DCE_net = model.enhance_net_nopool().cpu()
|
34 |
+
DCE_net.load_state_dict(torch.load('Epoch99.pth'))
|
35 |
start = time.time()
|
36 |
_,enhanced_image,_ = DCE_net(data_lowlight)
|
37 |
|
|
|
65 |
|
66 |
examples = [['data/test_data//01.jpg'], ['data/test_data//02.jpg'], ['data/test_data//03.jpg'],]
|
67 |
gr.Interface(
|
68 |
+
lowlight,
|
69 |
[gr.inputs.Image(type="pil", label="Input")],
|
70 |
gr.outputs.Image(type="file", label="Output"),
|
71 |
title=title,
|