camparchimedes commited on
Commit
638acc9
·
verified ·
1 Parent(s): 2a7f812

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -65,18 +65,8 @@ SIDEBAR_INFO = f"""
65
 
66
  @spaces.GPU()
67
  def transcribe(microphone, file_upload):
68
- warn_output = ""
69
- if (microphone is not None) and (file_upload is not None):
70
- warn_output = (
71
- "WARNING: You've uploaded an audio file and used the microphone. "
72
- "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
73
- )
74
-
75
- elif (microphone is None) and (file_upload is None):
76
- return "ERROR: You have to either use the microphone or upload an audio file"
77
-
78
  file = microphone if microphone is not None else file_upload
79
-
80
  start_time = time.time()
81
 
82
 
 
65
 
66
  @spaces.GPU()
67
  def transcribe(microphone, file_upload):
68
+
 
 
 
 
 
 
 
 
 
69
  file = microphone if microphone is not None else file_upload
 
70
  start_time = time.time()
71
 
72