Spaces:
Sleeping
Sleeping
Update app_enhance.py
Browse files- app_enhance.py +2 -2
app_enhance.py
CHANGED
|
@@ -53,7 +53,7 @@ def enhance_image(img_a: str, img_b: str, mode: str) -> Tuple[str, str]:
|
|
| 53 |
write_gif(gif_path)
|
| 54 |
return gif_path, gif_path
|
| 55 |
except subprocess.CalledProcessError as e:
|
| 56 |
-
raise gr.Error(f"
|
| 57 |
|
| 58 |
# Gradio UI
|
| 59 |
def build_interface():
|
|
@@ -76,4 +76,4 @@ def build_interface():
|
|
| 76 |
return demo
|
| 77 |
|
| 78 |
demo = build_interface()
|
| 79 |
-
demo.launch()
|
|
|
|
| 53 |
write_gif(gif_path)
|
| 54 |
return gif_path, gif_path
|
| 55 |
except subprocess.CalledProcessError as e:
|
| 56 |
+
raise gr.Error(f"Enhancement failed: {e}")
|
| 57 |
|
| 58 |
# Gradio UI
|
| 59 |
def build_interface():
|
|
|
|
| 76 |
return demo
|
| 77 |
|
| 78 |
demo = build_interface()
|
| 79 |
+
demo.launch()
|