{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidxrepefkh4lguobuhjnkbpmv5tho45ycezuz3wdw7ie67dvtnama",
    "uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mmfywptztu72"
  },
  "path": "/t/problems-with-duplication/176137#post_4",
  "publishedAt": "2026-05-22T01:50:11.000Z",
  "site": "https://discuss.huggingface.co",
  "tags": [
    "I tried porting the code for that space just to see. Maybe it’ll work if you duplicate this",
    "@staticmethod"
  ],
  "textContent": "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.\n\nWhile some spaces require a lot of changes, there aren’t actually that many changes this time (in logic part):\n\n\n    --- a/README.md\n    +++ b/README.md\n    @@ -5,7 +5,10 @@\n     colorTo: gray\n     sdk: gradio\n     sdk_version: 6.14.0\n    +python_version: 3.10.13\n     app_file: gradio_app.py\n    +suggested_hardware: l40sx1\n    +startup_duration_timeout: 1h\n     pinned: false\n     disable_embedding: true\n     short_description: A Diffusion Model for Video Inpainting\n    --- a/requirements.txt\n    +++ b/requirements.txt\n    @@ -1,3 +1,4 @@\n    +--extra-index-url https://download.pytorch.org/whl/cu128\n     accelerate==0.25.0\n     av==14.0.1\n     datasets==2.19.1\n    --- a/gradio_app.py\n    +++ b/gradio_app.py\n    @@ -1,4 +1,13 @@\n    -import spaces\n    +try:\n    +    import spaces\n    +except ImportError:\n    +    class _SpacesFallback:\n    +        @staticmethod\n    +        def GPU(*args, **kwargs):\n    +            def decorator(fn):\n    +                return fn\n    +            return decorator\n    +    spaces = _SpacesFallback()\n     import torch\n     import os\n     import time\n",
  "title": "Problems with duplication"
}