Spaces:
Configuration error
Configuration error
Move css_paths to launch() and drop dead #duplicate-button CSS
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def predict(image: np.ndarray) -> np.ndarray:
|
|
| 57 |
return np.clip(res, 0, 255).astype(np.uint8)
|
| 58 |
|
| 59 |
|
| 60 |
-
with gr.Blocks(
|
| 61 |
gr.Markdown(DESCRIPTION)
|
| 62 |
with gr.Row():
|
| 63 |
with gr.Column():
|
|
@@ -72,4 +72,4 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
| 72 |
)
|
| 73 |
|
| 74 |
if __name__ == "__main__":
|
| 75 |
-
demo.queue(max_size=20).launch()
|
|
|
|
| 57 |
return np.clip(res, 0, 255).astype(np.uint8)
|
| 58 |
|
| 59 |
|
| 60 |
+
with gr.Blocks() as demo:
|
| 61 |
gr.Markdown(DESCRIPTION)
|
| 62 |
with gr.Row():
|
| 63 |
with gr.Column():
|
|
|
|
| 72 |
)
|
| 73 |
|
| 74 |
if __name__ == "__main__":
|
| 75 |
+
demo.queue(max_size=20).launch(css_paths="style.css")
|