Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
23 |
-
except:
|
24 |
-
|
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):
|