Set the maximum height of the gr.Dropdown menu to 500px.
Browse files- README.md +2 -2
- app.py +5 -5
- requirements-fasterWhisper.txt +1 -1
- requirements-whisper.txt +1 -1
- requirements.txt +1 -1
README.md
CHANGED
@@ -4,9 +4,9 @@ emoji: ✨
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: apache-2.0
|
11 |
duplicated_from: aadnk/whisper-webui
|
12 |
---
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.16.0
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
license: apache-2.0
|
11 |
duplicated_from: aadnk/whisper-webui
|
12 |
---
|
app.py
CHANGED
@@ -1153,9 +1153,9 @@ def create_ui(app_config: ApplicationConfig):
|
|
1153 |
]
|
1154 |
|
1155 |
css = """
|
1156 |
-
.options {
|
1157 |
-
max-height:
|
1158 |
-
overflow-y: auto !important;
|
1159 |
}
|
1160 |
.scroll-show textarea {
|
1161 |
overflow-y: auto !important;
|
@@ -1216,7 +1216,7 @@ def create_ui(app_config: ApplicationConfig):
|
|
1216 |
llamaTab.select(fn=lambda: "Llama", inputs = [], outputs= [translateInput] )
|
1217 |
with gr.Column():
|
1218 |
with gr.Tab(label="URL") as UrlTab:
|
1219 |
-
inputDict.update({gr.Text(label="URL
|
1220 |
with gr.Tab(label="Upload") as UploadTab:
|
1221 |
inputDict.update({gr.File(label="Upload Files", file_count="multiple", elem_id = "multipleFiles")})
|
1222 |
with gr.Tab(label="Microphone") as MicTab: # [Gradio 5.x] TypeError: Audio.__init__() got an unexpected keyword argument 'source'
|
@@ -1367,7 +1367,7 @@ def create_ui(app_config: ApplicationConfig):
|
|
1367 |
fullTranscribe = create_transcribe(fullDescription, is_queue_mode, True)
|
1368 |
uiTranslation = create_translation(is_queue_mode)
|
1369 |
|
1370 |
-
demo = gr.TabbedInterface([simpleTranscribe, fullTranscribe, uiTranslation], tab_names=["Simple", "Full", "Translation"], css=css)
|
1371 |
|
1372 |
# Queue up the demo
|
1373 |
if is_queue_mode: # [Gradio 5.x] TypeError: Blocks.queue() got an unexpected keyword argument 'concurrency_count'
|
|
|
1153 |
]
|
1154 |
|
1155 |
css = """
|
1156 |
+
ul.options {
|
1157 |
+
max-height: 500px !important; /* Set the maximum height of the dropdown menu */
|
1158 |
+
overflow-y: auto !important; /* Enable vertical scrolling if the content exceeds the height */
|
1159 |
}
|
1160 |
.scroll-show textarea {
|
1161 |
overflow-y: auto !important;
|
|
|
1216 |
llamaTab.select(fn=lambda: "Llama", inputs = [], outputs= [translateInput] )
|
1217 |
with gr.Column():
|
1218 |
with gr.Tab(label="URL") as UrlTab:
|
1219 |
+
inputDict.update({gr.Text(label="Download from URL, Since YouTube has restricted unauthorized connections, an error message is expected.", elem_id = "urlData")})
|
1220 |
with gr.Tab(label="Upload") as UploadTab:
|
1221 |
inputDict.update({gr.File(label="Upload Files", file_count="multiple", elem_id = "multipleFiles")})
|
1222 |
with gr.Tab(label="Microphone") as MicTab: # [Gradio 5.x] TypeError: Audio.__init__() got an unexpected keyword argument 'source'
|
|
|
1367 |
fullTranscribe = create_transcribe(fullDescription, is_queue_mode, True)
|
1368 |
uiTranslation = create_translation(is_queue_mode)
|
1369 |
|
1370 |
+
demo = gr.TabbedInterface([simpleTranscribe, fullTranscribe, uiTranslation], tab_names=["Simple", "Full", "Translation"], css = css)
|
1371 |
|
1372 |
# Queue up the demo
|
1373 |
if is_queue_mode: # [Gradio 5.x] TypeError: Blocks.queue() got an unexpected keyword argument 'concurrency_count'
|
requirements-fasterWhisper.txt
CHANGED
@@ -4,7 +4,7 @@ transformers>=4.45.2
|
|
4 |
ctranslate2>=4.4.0
|
5 |
faster-whisper>=1.0.3
|
6 |
ffmpeg-python==0.2.0
|
7 |
-
gradio==5.
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|
|
|
4 |
ctranslate2>=4.4.0
|
5 |
faster-whisper>=1.0.3
|
6 |
ffmpeg-python==0.2.0
|
7 |
+
gradio==5.16.0
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|
requirements-whisper.txt
CHANGED
@@ -4,7 +4,7 @@ transformers>=4.45.2
|
|
4 |
ctranslate2>=4.4.0
|
5 |
git+https://github.com/openai/whisper.git
|
6 |
ffmpeg-python==0.2.0
|
7 |
-
gradio==5.
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|
|
|
4 |
ctranslate2>=4.4.0
|
5 |
git+https://github.com/openai/whisper.git
|
6 |
ffmpeg-python==0.2.0
|
7 |
+
gradio==5.16.0
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|
requirements.txt
CHANGED
@@ -4,7 +4,7 @@ transformers>=4.45.2
|
|
4 |
ctranslate2>=4.4.0
|
5 |
faster-whisper>=1.0.3
|
6 |
ffmpeg-python==0.2.0
|
7 |
-
gradio==5.
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|
|
|
4 |
ctranslate2>=4.4.0
|
5 |
faster-whisper>=1.0.3
|
6 |
ffmpeg-python==0.2.0
|
7 |
+
gradio==5.16.0
|
8 |
yt-dlp
|
9 |
json5
|
10 |
|