Alexander Seifert commited on
Commit
15a2fa0
1 Parent(s): b43d4b4
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def transcribe(email: str, file=None, url=None):
32
 
33
  def run_demo(email, password, microphone, file_upload):
34
  if password != os.environ["PASSWORD"]:
35
- raise gr.Error("Das Kennwort ist falsch.")
36
 
37
  if (microphone is not None) and (file_upload is not None):
38
  logger.warning(
@@ -57,7 +57,7 @@ demo = gr.Interface(
57
  fn=run_demo,
58
  inputs=[
59
  gr.Textbox(label="Email", type="email"),
60
- gr.Textbox(label="Zugriffs-Kennwort (siehe oben)"),
61
  gr.Audio(source="microphone", type="filepath", label="Aufnehmen"),
62
  gr.Audio(source="upload", type="filepath", label="Datei hochladen"),
63
  ],
 
32
 
33
  def run_demo(email, password, microphone, file_upload):
34
  if password != os.environ["PASSWORD"]:
35
+ raise gr.Error("Der Zugriffscode ist falsch.")
36
 
37
  if (microphone is not None) and (file_upload is not None):
38
  logger.warning(
 
57
  fn=run_demo,
58
  inputs=[
59
  gr.Textbox(label="Email", type="email"),
60
+ gr.Textbox(label="Zugriffscode (siehe oben)"),
61
  gr.Audio(source="microphone", type="filepath", label="Aufnehmen"),
62
  gr.Audio(source="upload", type="filepath", label="Datei hochladen"),
63
  ],