Helw150 commited on
Commit
6b7a155
β€’
1 Parent(s): fe1e574
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -53,13 +53,18 @@ def diva_audio(audio_input, do_sample=False, temperature=0.001):
53
 
54
  def transcribe_wrapper(audio_input, state, model_order):
55
  spinner = "β—’"
 
 
 
 
 
56
  yield (
57
  gr.Button(
58
  value=spinner + " Generating Responses " + spinner,
59
  interactive=False,
60
  variant="primary",
61
  ),
62
- "",
63
  state,
64
  )
65
 
@@ -121,7 +126,7 @@ def on_page_load(state, model_order):
121
  def recording_complete(state):
122
  if state == 1:
123
  gr.Info(
124
- "Once you submit your recording, DiVA will stream back a response! This might take a second."
125
  )
126
  state = 2
127
  return (
 
53
 
54
  def transcribe_wrapper(audio_input, state, model_order):
55
  spinner = "β—’"
56
+ d_resp = gr.Textbox(
57
+ value="...",
58
+ visible=True,
59
+ label=model_names[0] if not anonymous else f"Model {order}",
60
+ )
61
  yield (
62
  gr.Button(
63
  value=spinner + " Generating Responses " + spinner,
64
  interactive=False,
65
  variant="primary",
66
  ),
67
+ d_resp,
68
  state,
69
  )
70
 
 
126
  def recording_complete(state):
127
  if state == 1:
128
  gr.Info(
129
+ "Once you submit your recording, DiVA will stream back a response! This might take a second as ZeroGPU needs to load model weights into vRAM!."
130
  )
131
  state = 2
132
  return (