Spaces:
Sleeping
Sleeping
yellowcandle
commited on
changed default model for proofreading
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import spaces
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import orjson
|
@@ -71,8 +71,8 @@ with gr.Blocks() as demo:
|
|
71 |
|
72 |
with gr.Row():
|
73 |
audio = gr.Audio(sources="upload", type="filepath")
|
74 |
-
transcribe_model_dropdown = gr.Dropdown(choices=["openai/whisper-large-v3", "alvanlii/whisper-small-cantonese"], value="
|
75 |
-
proofread_model_dropdown = gr.Dropdown(choices=["hfl/llama-3-chinese-8b-instruct-v3"
|
76 |
|
77 |
transcribe_button = gr.Button("Transcribe")
|
78 |
transcribed_text = gr.Textbox(label="Transcribed Text")
|
|
|
1 |
+
# import spaces
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import orjson
|
|
|
71 |
|
72 |
with gr.Row():
|
73 |
audio = gr.Audio(sources="upload", type="filepath")
|
74 |
+
transcribe_model_dropdown = gr.Dropdown(choices=["openai/whisper-large-v3", "alvanlii/whisper-small-cantonese"], value="alvanlii/whisper-small-cantonese", label="Select Transcription Model")
|
75 |
+
proofread_model_dropdown = gr.Dropdown(choices=["hfl/llama-3-chinese-8b-instruct-v3"], value="hfl/llama-3-chinese-8b-instruct-v3", label="Select Proofreading Model")
|
76 |
|
77 |
transcribe_button = gr.Button("Transcribe")
|
78 |
transcribed_text = gr.Textbox(label="Transcribed Text")
|