terry-li-hm commited on
Commit
e41a956
·
1 Parent(s): 1e836f3
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -36,9 +36,11 @@ def model_inference(input_wav, language):
36
 
37
  def launch():
38
  # Create a custom theme
39
- custom_theme = gr.themes.Base().set(text_color="rgb(70, 70, 70)")
 
 
40
 
41
- with gr.Blocks(theme=custom_theme) as demo:
42
  gr.Markdown("# Cantonese Call Transcriber")
43
  gr.Markdown(
44
  """
@@ -66,7 +68,6 @@ def launch():
66
  outputs=[text_output],
67
  fn=lambda x: model_inference(x, "yue"),
68
  examples_per_page=1,
69
- render=render_example,
70
  )
71
 
72
  # Main interface
 
36
 
37
  def launch():
38
  # Create a custom theme
39
+ custom_css = """
40
+ .gradio-container {color: rgb(70, 70, 70);}
41
+ """
42
 
43
+ with gr.Blocks(css=custom_css) as demo:
44
  gr.Markdown("# Cantonese Call Transcriber")
45
  gr.Markdown(
46
  """
 
68
  outputs=[text_output],
69
  fn=lambda x: model_inference(x, "yue"),
70
  examples_per_page=1,
 
71
  )
72
 
73
  # Main interface