Spaces:
Runtime error
Runtime error
terry-li-hm
commited on
Commit
·
d3490a8
1
Parent(s):
d4123fe
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import soundfile as sf
|
|
| 6 |
import spaces
|
| 7 |
import torch
|
| 8 |
import torchaudio
|
| 9 |
-
from gradio.themes
|
| 10 |
from sv import process_audio
|
| 11 |
|
| 12 |
|
|
@@ -35,7 +35,10 @@ def model_inference(input_wav, language):
|
|
| 35 |
|
| 36 |
|
| 37 |
def launch():
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
| 39 |
gr.Markdown("# Cantonese Call Transcriber")
|
| 40 |
gr.Markdown(
|
| 41 |
"""
|
|
|
|
| 6 |
import spaces
|
| 7 |
import torch
|
| 8 |
import torchaudio
|
| 9 |
+
from gradio.themes import Base
|
| 10 |
from sv import process_audio
|
| 11 |
|
| 12 |
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
def launch():
|
| 38 |
+
# Create a custom theme
|
| 39 |
+
custom_theme = Base(text_color="rgb(70, 70, 70)") # Deep grey color
|
| 40 |
+
|
| 41 |
+
with gr.Blocks(theme=custom_theme) as demo:
|
| 42 |
gr.Markdown("# Cantonese Call Transcriber")
|
| 43 |
gr.Markdown(
|
| 44 |
"""
|