Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None,
|
|
11 |
if not model_id or not q_method or not email:
|
12 |
return "All fields are required!"
|
13 |
|
14 |
-
input_hash = hash((model_id, q_method,
|
15 |
|
16 |
if input_hash in processed_inputs and processed_inputs[input_hash] == 200:
|
17 |
return "This request has already been submitted successfully. Please do not submit the same request multiple times."
|
|
|
11 |
if not model_id or not q_method or not email:
|
12 |
return "All fields are required!"
|
13 |
|
14 |
+
input_hash = hash((model_id, q_method, oauth_token.token, profile.username))
|
15 |
|
16 |
if input_hash in processed_inputs and processed_inputs[input_hash] == 200:
|
17 |
return "This request has already been submitted successfully. Please do not submit the same request multiple times."
|