Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -160,8 +160,8 @@ def verify_captcha(user_input, captcha_solution):
|
|
160 |
@spaces.GPU(duration=1000)
|
161 |
def analyze_video(video_file, captcha_input, captcha_solution, request: gr.Request):
|
162 |
# Authorization check
|
163 |
-
if not is_authorized(request):
|
164 |
-
|
165 |
|
166 |
client_ip = get_client_ip(request)
|
167 |
|
|
|
160 |
@spaces.GPU(duration=1000)
|
161 |
def analyze_video(video_file, captcha_input, captcha_solution, request: gr.Request):
|
162 |
# Authorization check
|
163 |
+
#if not is_authorized(request):
|
164 |
+
# return {"error": "Unauthorized access. Please provide a valid API key."}
|
165 |
|
166 |
client_ip = get_client_ip(request)
|
167 |
|