Peter Michael Gits Claude commited on
Commit
5e08a8b
·
1 Parent(s): 491418e

fix: Remove non-existent @spaces.CPU decorator

Browse files

- Remove @spaces.CPU decorator (doesn't exist in spaces module)
- Keep only @spaces.GPU which is the required decorator
- Fixes AttributeError: module 'spaces' has no attribute 'CPU'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -96,10 +96,9 @@ def _dummy_gpu_function():
96
  """Dummy function to satisfy ZeroGPU startup detection"""
97
  return "GPU available"
98
 
99
- # Dummy CPU function to satisfy Spaces CPU requirements
100
- @spaces.CPU
101
  def _dummy_cpu_function():
102
- """Dummy function to satisfy Spaces CPU detection"""
103
  return "CPU available"
104
 
105
  # Initialize functions at module level for Spaces detection
 
96
  """Dummy function to satisfy ZeroGPU startup detection"""
97
  return "GPU available"
98
 
99
+ # Regular CPU function (no decorator needed)
 
100
  def _dummy_cpu_function():
101
+ """Regular CPU function for system info"""
102
  return "CPU available"
103
 
104
  # Initialize functions at module level for Spaces detection