David_A commited on
Commit
0c1583f
·
1 Parent(s): 5def36c

logo_test_2

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -8,7 +8,7 @@ def transcribe_audio(audio_file):
8
  result = model.transcribe(audio_file, fp16=False)
9
  return result["text"]
10
 
11
- def inference(text):
12
  html = (
13
  "<div >"
14
  "<img src='file/logo-digitalix.png' alt='image One'>"
@@ -22,10 +22,12 @@ def main():
22
 
23
  iface = gr.Interface(fn=transcribe_audio, inputs=audio_input,
24
  outputs=output_text, title="Transciption Audio DIGITALIXSA",
25
- description="Charger l'audio")
26
 
27
  iface.launch(auth=("admin", "pass1234"))
28
 
29
 
30
  if __name__ == '__main__':
31
- main()
 
 
 
8
  result = model.transcribe(audio_file, fp16=False)
9
  return result["text"]
10
 
11
+ def inference():
12
  html = (
13
  "<div >"
14
  "<img src='file/logo-digitalix.png' alt='image One'>"
 
22
 
23
  iface = gr.Interface(fn=transcribe_audio, inputs=audio_input,
24
  outputs=output_text, title="Transciption Audio DIGITALIXSA",
25
+ description=inference)
26
 
27
  iface.launch(auth=("admin", "pass1234"))
28
 
29
 
30
  if __name__ == '__main__':
31
+ main()
32
+
33
+ # description="Charger l'audio")