multimodalart HF Staff commited on
Commit
af05b73
·
verified ·
1 Parent(s): d847bf8

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 pin (incompatible with ZeroGPU's torch 2.11).
11
- # Then their real deps are listed in requirements.txt.
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