qiqiWav commited on
Commit
3d32c38
1 Parent(s): bb3929c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, email, 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."
 
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."