Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,21 +1,4 @@
|
|
| 1 |
import os
|
| 2 |
-
import shlex
|
| 3 |
-
import subprocess
|
| 4 |
-
|
| 5 |
-
subprocess.run(
|
| 6 |
-
shlex.split("pip install flash-attn --no-build-isolation"),
|
| 7 |
-
env=os.environ | {"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
| 8 |
-
check=True,
|
| 9 |
-
)
|
| 10 |
-
subprocess.run(
|
| 11 |
-
shlex.split("pip install https://github.com/state-spaces/mamba/releases/download/v2.2.4/mamba_ssm-2.2.4+cu12torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"),
|
| 12 |
-
check=True,
|
| 13 |
-
)
|
| 14 |
-
subprocess.run(
|
| 15 |
-
shlex.split("pip install https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.5.0.post8/causal_conv1d-1.5.0.post8+cu12torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"),
|
| 16 |
-
check=True,
|
| 17 |
-
)
|
| 18 |
-
|
| 19 |
import spaces
|
| 20 |
import torch
|
| 21 |
import torchaudio
|
|
@@ -568,4 +551,4 @@ def build_interface():
|
|
| 568 |
if __name__ == "__main__":
|
| 569 |
demo = build_interface()
|
| 570 |
share = getenv("GRADIO_SHARE", "False").lower() in ("true", "1", "t")
|
| 571 |
-
demo.launch(server_name="0.0.0.0", server_port=7860, share=share
|
|
|
|
| 1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import spaces
|
| 3 |
import torch
|
| 4 |
import torchaudio
|
|
|
|
| 551 |
if __name__ == "__main__":
|
| 552 |
demo = build_interface()
|
| 553 |
share = getenv("GRADIO_SHARE", "False").lower() in ("true", "1", "t")
|
| 554 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, share=share)
|