acumplid commited on
Commit
bc43a7e
1 Parent(s): 9efa355

Adapted demo to new theme

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  from dotenv import load_dotenv
3
  import gradio as gr
4
- from AinaTheme import AinaGradioTheme
5
  from huggingface_hub import snapshot_download
6
  import nltk
7
 
@@ -120,7 +120,7 @@ def update_target_languages_dropdown(source_language):
120
  return gr.update(choices=output_languages, value=output_languages[0], interactive=True)
121
 
122
 
123
- with gr.Blocks(**AinaGradioTheme().get_kwargs()) as app:
124
  with gr.Row(variant="panel"):
125
  with gr.Column(scale=2):
126
  placeholder_max_token = gr.Textbox(
@@ -193,4 +193,4 @@ with gr.Blocks(**AinaGradioTheme().get_kwargs()) as app:
193
  concurrency_limit=1,
194
  )
195
 
196
- app.launch(show_api=True)
 
1
  import os
2
  from dotenv import load_dotenv
3
  import gradio as gr
4
+ from AinaTheme import theme
5
  from huggingface_hub import snapshot_download
6
  import nltk
7
 
 
120
  return gr.update(choices=output_languages, value=output_languages[0], interactive=True)
121
 
122
 
123
+ with gr.Blocks(theme=theme) as app:
124
  with gr.Row(variant="panel"):
125
  with gr.Column(scale=2):
126
  placeholder_max_token = gr.Textbox(
 
193
  concurrency_limit=1,
194
  )
195
 
196
+ app.launch(show_api=True)