Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ device_info = f"""Running on: **{device}**
|
|
64 |
class App:
|
65 |
def __init__(self, args):
|
66 |
self.args = args
|
67 |
-
self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))
|
68 |
-
|
69 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
70 |
whisper_type=self.args.whisper_type,
|
71 |
whisper_model_dir=self.args.whisper_model_dir,
|
@@ -258,7 +258,7 @@ class App:
|
|
258 |
with gr.Column():
|
259 |
gr.Markdown(MARKDOWN, elem_id="md_project")
|
260 |
with gr.Tabs():
|
261 |
-
with gr.TabItem("Audio"): # tab1
|
262 |
with gr.Column():
|
263 |
#input_file = gr.Files(type="filepath", label="Upload File here")
|
264 |
input_file = gr.Audio(type='filepath', elem_id="audio_input")
|
|
|
64 |
class App:
|
65 |
def __init__(self, args):
|
66 |
self.args = args
|
67 |
+
#self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))
|
68 |
+
self.app = gr.Blocks(css=CSS, theme=gr.themes.Ocean(), delete_cache=(60, 3600))
|
69 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
70 |
whisper_type=self.args.whisper_type,
|
71 |
whisper_model_dir=self.args.whisper_model_dir,
|
|
|
258 |
with gr.Column():
|
259 |
gr.Markdown(MARKDOWN, elem_id="md_project")
|
260 |
with gr.Tabs():
|
261 |
+
with gr.TabItem("Audio Upload/Record"): # tab1
|
262 |
with gr.Column():
|
263 |
#input_file = gr.Files(type="filepath", label="Upload File here")
|
264 |
input_file = gr.Audio(type='filepath', elem_id="audio_input")
|