Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import os
|
|
| 3 |
import gradio as gr
|
| 4 |
import shutil
|
| 5 |
|
|
|
|
| 6 |
def find_cuda():
|
| 7 |
# Check if CUDA_HOME or CUDA_PATH environment variables are set
|
| 8 |
cuda_home = os.environ.get('CUDA_HOME') or os.environ.get('CUDA_PATH')
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import shutil
|
| 5 |
|
| 6 |
+
@spaces.GPU
|
| 7 |
def find_cuda():
|
| 8 |
# Check if CUDA_HOME or CUDA_PATH environment variables are set
|
| 9 |
cuda_home = os.environ.get('CUDA_HOME') or os.environ.get('CUDA_PATH')
|