Spaces:
Running
Running
jhj0517
commited on
Commit
·
44db26d
1
Parent(s):
f421dd9
Use cache clean logic from gradio
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from modules.whisper.whisper_parameter import *
|
|
21 |
class App:
|
22 |
def __init__(self, args):
|
23 |
self.args = args
|
24 |
-
self.app = gr.Blocks(css=CSS, theme=self.args.theme)
|
25 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
26 |
whisper_type=self.args.whisper_type,
|
27 |
whisper_model_dir=self.args.whisper_model_dir,
|
|
|
21 |
class App:
|
22 |
def __init__(self, args):
|
23 |
self.args = args
|
24 |
+
self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))
|
25 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
26 |
whisper_type=self.args.whisper_type,
|
27 |
whisper_model_dir=self.args.whisper_model_dir,
|