Spaces:
Runtime error
Runtime error
Lakoc
commited on
Commit
·
3801ebb
1
Parent(s):
85cb6ca
added disclaimer
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import time
|
|
| 12 |
|
| 13 |
# Available models to choose from
|
| 14 |
MODEL_OPTIONS = ["BUT-FIT/DeCRED-base", "BUT-FIT/DeCRED-small", "BUT-FIT/ED-base", "BUT-FIT/ED-small"]
|
| 15 |
-
DEFAULT_MODEL = MODEL_OPTIONS[
|
| 16 |
|
| 17 |
BATCH_SIZE = 8
|
| 18 |
FILE_LIMIT_MB = 1000
|
|
@@ -34,6 +34,7 @@ def initialize_pipeline(model_name):
|
|
| 34 |
pipe.type = "seq2seq"
|
| 35 |
return pipe
|
| 36 |
|
|
|
|
| 37 |
# Initialize the pipeline with a default model (it will be updated after user selects one)
|
| 38 |
pipe = initialize_pipeline(DEFAULT_MODEL)
|
| 39 |
pipe.type = "seq2seq"
|
|
@@ -159,5 +160,9 @@ yt_transcribe = gr.Interface(
|
|
| 159 |
|
| 160 |
with demo:
|
| 161 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
demo.queue().launch(ssr_mode=False)
|
|
|
|
| 12 |
|
| 13 |
# Available models to choose from
|
| 14 |
MODEL_OPTIONS = ["BUT-FIT/DeCRED-base", "BUT-FIT/DeCRED-small", "BUT-FIT/ED-base", "BUT-FIT/ED-small"]
|
| 15 |
+
DEFAULT_MODEL = MODEL_OPTIONS[1]
|
| 16 |
|
| 17 |
BATCH_SIZE = 8
|
| 18 |
FILE_LIMIT_MB = 1000
|
|
|
|
| 34 |
pipe.type = "seq2seq"
|
| 35 |
return pipe
|
| 36 |
|
| 37 |
+
|
| 38 |
# Initialize the pipeline with a default model (it will be updated after user selects one)
|
| 39 |
pipe = initialize_pipeline(DEFAULT_MODEL)
|
| 40 |
pipe.type = "seq2seq"
|
|
|
|
| 160 |
|
| 161 |
with demo:
|
| 162 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
| 163 |
+
gr.Markdown(
|
| 164 |
+
"Disclaimer: This space currently runs on basic CPU hardware, so generation might take a bit longer. "
|
| 165 |
+
"You can clone the repository and run it locally for better performance. "
|
| 166 |
+
"The model is not perfect and may make errors, so please use responsibly.")
|
| 167 |
|
| 168 |
demo.queue().launch(ssr_mode=False)
|