Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
os.environ.setdefault("CHATTERBOX_FLASH_ENGINE", "torch")
|
|
|
|
| 3 |
|
| 4 |
import spaces
|
| 5 |
import torch
|
|
@@ -7,8 +8,8 @@ import numpy as np
|
|
| 7 |
import gradio as gr
|
| 8 |
|
| 9 |
# Install chatterbox-tts and chatterbox-flash with --no-deps to avoid
|
| 10 |
-
# the torch==2.6.0
|
| 11 |
-
#
|
| 12 |
import subprocess
|
| 13 |
import sys
|
| 14 |
|
|
|
|
| 1 |
import os
|
| 2 |
os.environ.setdefault("CHATTERBOX_FLASH_ENGINE", "torch")
|
| 3 |
+
os.environ.setdefault("NUMBA_DISABLE_CUDA", "1")
|
| 4 |
|
| 5 |
import spaces
|
| 6 |
import torch
|
|
|
|
| 8 |
import gradio as gr
|
| 9 |
|
| 10 |
# Install chatterbox-tts and chatterbox-flash with --no-deps to avoid
|
| 11 |
+
# the torch==2.6.0 / gradio==6.8.0 pins (incompatible with ZeroGPU).
|
| 12 |
+
# Their real deps are listed in requirements.txt.
|
| 13 |
import subprocess
|
| 14 |
import sys
|
| 15 |
|