Problems with duplication
Hugging Face Forums [Unofficial]
May 22, 2026
Hmm, I tried porting the code for that space just to see. Maybe it’ll work if you duplicate this? I’m not sure if the L40S has enough performance, though.
While some spaces require a lot of changes, there aren’t actually that many changes this time (in logic part):
--- a/README.md
+++ b/README.md
@@ -5,7 +5,10 @@
colorTo: gray
sdk: gradio
sdk_version: 6.14.0
+python_version: 3.10.13
app_file: gradio_app.py
+suggested_hardware: l40sx1
+startup_duration_timeout: 1h
pinned: false
disable_embedding: true
short_description: A Diffusion Model for Video Inpainting
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+--extra-index-url https://download.pytorch.org/whl/cu128
accelerate==0.25.0
av==14.0.1
datasets==2.19.1
--- a/gradio_app.py
+++ b/gradio_app.py
@@ -1,4 +1,13 @@
-import spaces
+try:
+ import spaces
+except ImportError:
+ class _SpacesFallback:
+ @staticmethod
+ def GPU(*args, **kwargs):
+ def decorator(fn):
+ return fn
+ return decorator
+ spaces = _SpacesFallback()
import torch
import os
import time
Discussion in the ATmosphere