3 init
Browse files
app.py
CHANGED
|
@@ -37,6 +37,9 @@ except Exception:
|
|
| 37 |
spaces = None
|
| 38 |
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
from heartlib import HeartMuLaGenPipeline, HeartTranscriptorPipeline
|
| 41 |
import torch
|
| 42 |
import gradio as gr
|
|
|
|
| 37 |
spaces = None
|
| 38 |
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
|
| 39 |
|
| 40 |
+
# HF Spaces: disable SSR to avoid Node proxy/port issues.
|
| 41 |
+
os.environ.setdefault("GRADIO_SSR_MODE", "0")
|
| 42 |
+
|
| 43 |
from heartlib import HeartMuLaGenPipeline, HeartTranscriptorPipeline
|
| 44 |
import torch
|
| 45 |
import gradio as gr
|