Spaces:
Sleeping
Sleeping
HadiZayer Claude Sonnet 4.6 commited on
Commit ·
bb2e2c7
1
Parent(s): 87c1aac
Move `import spaces` before all other imports to satisfy ZeroGPU requirement
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
# Copyright 2024 Adobe. All rights reserved.
|
|
|
|
| 2 |
|
| 3 |
# Patch gradio_client 5.21.0 bug: _json_schema_to_python_type receives bool
|
| 4 |
# (from "additionalProperties": false in JSON schema) and crashes on "const" in bool
|
|
@@ -19,7 +20,6 @@ import gradio as gr
|
|
| 19 |
import numpy as np
|
| 20 |
import shutil
|
| 21 |
import os
|
| 22 |
-
import spaces
|
| 23 |
|
| 24 |
|
| 25 |
# Download checkpoint from HF Hub at startup
|
|
|
|
| 1 |
# Copyright 2024 Adobe. All rights reserved.
|
| 2 |
+
import spaces
|
| 3 |
|
| 4 |
# Patch gradio_client 5.21.0 bug: _json_schema_to_python_type receives bool
|
| 5 |
# (from "additionalProperties": false in JSON schema) and crashes on "const" in bool
|
|
|
|
| 20 |
import numpy as np
|
| 21 |
import shutil
|
| 22 |
import os
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
# Download checkpoint from HF Hub at startup
|