Loren commited on
Commit
139db11
·
verified ·
1 Parent(s): 2491436

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,7 +57,7 @@ def disable_buttons():
57
  return gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False)
58
 
59
  def enable_buttons():
60
- return gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=False)
61
  ###
62
 
63
  ### Initializations
@@ -114,7 +114,7 @@ with gr.Blocks(title="Voxtral") as voxtral:
114
 
115
  with gr.Row():
116
  with gr.Column():
117
- gr.Buton("📝 Transcription", variant="huggingface", interactive=False)
118
  sel_language = gr.Dropdown(
119
  choices=list(dict_languages.keys()),
120
  value="English",
@@ -124,7 +124,7 @@ with gr.Blocks(title="Voxtral") as voxtral:
124
  text_transcript = gr.Textbox(label="💬 Generated transcription", lines=10)
125
 
126
  with gr.Column():
127
- gr.Buton("🔁 Translation", variant="huggingface", interactive=False)
128
  sel_translate_language = gr.Dropdown(
129
  choices=list(dict_languages.keys()),
130
  value="English",
@@ -135,7 +135,7 @@ with gr.Blocks(title="Voxtral") as voxtral:
135
  text_translate = gr.Textbox(label="💬 Generated translation", lines=10)
136
 
137
  with gr.Column():
138
- gr.Buton("🤖 Ask audio file", variant="huggingface", interactive=False)
139
  question = gr.Textbox(label="Ask audio file", placeholder="Enter your question about audio file")
140
  submit_chat = gr.Button("Ask audio file:", variant="primary")
141
  text_chat = gr.Textbox(label="💬 Model answer", lines=10)
 
57
  return gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False)
58
 
59
  def enable_buttons():
60
+ return gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
61
  ###
62
 
63
  ### Initializations
 
114
 
115
  with gr.Row():
116
  with gr.Column():
117
+ gr.Button("📝 Transcription", variant="huggingface", interactive=False)
118
  sel_language = gr.Dropdown(
119
  choices=list(dict_languages.keys()),
120
  value="English",
 
124
  text_transcript = gr.Textbox(label="💬 Generated transcription", lines=10)
125
 
126
  with gr.Column():
127
+ gr.Button("🔁 Translation", variant="huggingface", interactive=False)
128
  sel_translate_language = gr.Dropdown(
129
  choices=list(dict_languages.keys()),
130
  value="English",
 
135
  text_translate = gr.Textbox(label="💬 Generated translation", lines=10)
136
 
137
  with gr.Column():
138
+ gr.Button("🤖 Ask audio file", variant="huggingface", interactive=False)
139
  question = gr.Textbox(label="Ask audio file", placeholder="Enter your question about audio file")
140
  submit_chat = gr.Button("Ask audio file:", variant="primary")
141
  text_chat = gr.Textbox(label="💬 Model answer", lines=10)