Spaces:
Running
Running
Commit
·
ea5b7fc
1
Parent(s):
7ea6a11
app.py: return nothing if audio is not provided
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def main():
|
|
130 |
if free_tier and past_requests_ >= FREE_TIER:
|
131 |
gr.Warning("Free tier exceeded, please reach out to get your API key")
|
132 |
logging.info(f"Free tier exceeded for {ip_}")
|
133 |
-
return
|
134 |
logging.info(f"Total number of requests: {counter}. {past_requests_} for {ip_}")
|
135 |
counter += 1
|
136 |
users[ip_] = past_requests_ + 1
|
|
|
130 |
if free_tier and past_requests_ >= FREE_TIER:
|
131 |
gr.Warning("Free tier exceeded, please reach out to get your API key")
|
132 |
logging.info(f"Free tier exceeded for {ip_}")
|
133 |
+
return
|
134 |
logging.info(f"Total number of requests: {counter}. {past_requests_} for {ip_}")
|
135 |
counter += 1
|
136 |
users[ip_] = past_requests_ + 1
|