Ar4ikov commited on
Commit
a1700ac
·
1 Parent(s): 0dc6920

Update Gradio app interface theme and configuration

Browse files

- Removed the explicit theme setting in the build_interface function.
- Added theme configuration to launch_kwargs in the _launch_app function for consistent theming across the application.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -327,7 +327,7 @@ FOOTER_MD = f"""
327
 
328
 
329
  def build_interface() -> gr.Blocks:
330
- with gr.Blocks(title="GigaAM-v3 ASR demo", theme=gr.themes.Ocean()) as demo:
331
  gr.Markdown(DESCRIPTION_MD)
332
 
333
  with gr.Row():
@@ -393,6 +393,7 @@ def _launch_app() -> None:
393
  launch_kwargs = {
394
  "server_name": os.getenv("GRADIO_SERVER_NAME", "0.0.0.0" if is_space else "127.0.0.1"),
395
  "server_port": int(os.getenv("GRADIO_SERVER_PORT", "7860")),
 
396
  }
397
  if not is_space and os.getenv("GRADIO_SHARE", "0") == "1":
398
  launch_kwargs["share"] = True
 
327
 
328
 
329
  def build_interface() -> gr.Blocks:
330
+ with gr.Blocks(title="GigaAM-v3 ASR demo") as demo:
331
  gr.Markdown(DESCRIPTION_MD)
332
 
333
  with gr.Row():
 
393
  launch_kwargs = {
394
  "server_name": os.getenv("GRADIO_SERVER_NAME", "0.0.0.0" if is_space else "127.0.0.1"),
395
  "server_port": int(os.getenv("GRADIO_SERVER_PORT", "7860")),
396
+ "theme": gr.themes.Ocean(),
397
  }
398
  if not is_space and os.getenv("GRADIO_SHARE", "0") == "1":
399
  launch_kwargs["share"] = True