awacke1 commited on
Commit
1d2f8ee
·
1 Parent(s): 012a776

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -18,11 +18,10 @@ headers = {
18
  def query(filename):
19
  with open(filename, "rb") as f:
20
  data = f.read
21
- try:
22
- response = requests.post(API_URL, headers=headers, data=data)
23
- except:
24
- st.write('Whisper Voice Speech to Text Model is asleep. Starting up now on T4 - please give 3 minutes then retry as KEDA scales up from zero to activate running container(s).')
25
-
26
  return response.json()
27
 
28
  def generate_filename(prompt, file_type):
 
18
  def query(filename):
19
  with open(filename, "rb") as f:
20
  data = f.read
21
+ #try:
22
+ response = requests.post(API_URL, headers=headers, data=data)
23
+ #except:
24
+ # st.write('Whisper Voice Speech to Text Model is asleep. Starting up now on T4 - please give 3 minutes then retry as KEDA scales up from zero to activate running container(s).')
 
25
  return response.json()
26
 
27
  def generate_filename(prompt, file_type):