Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ examples = [
|
|
| 11 |
]
|
| 12 |
|
| 13 |
# Define a GPU-decorated function for enhancement
|
| 14 |
-
@spaces.GPU(
|
| 15 |
def enhance_with_gpu(input_video, input_text, upscale, max_chunk_len, chunk_size):
|
| 16 |
"""在每次调用时创建新的 STAR_sr 实例,确保参数正确传递"""
|
| 17 |
star = STAR_sr(
|
|
|
|
| 11 |
]
|
| 12 |
|
| 13 |
# Define a GPU-decorated function for enhancement
|
| 14 |
+
@spaces.GPU()
|
| 15 |
def enhance_with_gpu(input_video, input_text, upscale, max_chunk_len, chunk_size):
|
| 16 |
"""在每次调用时创建新的 STAR_sr 实例,确保参数正确传递"""
|
| 17 |
star = STAR_sr(
|