Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None,
|
|
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 "
|
18 |
|
19 |
url = "https://sdk.nexa4ai.com/task"
|
20 |
|
@@ -40,7 +40,7 @@ def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None,
|
|
40 |
|
41 |
if response.status_code == 200:
|
42 |
processed_inputs[input_hash] = 200
|
43 |
-
return "
|
44 |
else:
|
45 |
processed_inputs[input_hash] = response.status_code
|
46 |
return f" Failed to submit request: {response.text}"
|
|
|
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 "Oops! π² Looks like you've already submitted this task π. Please hang tight! We'll send you an email with all the details once it's ready π. Thanks for your patience! π"
|
18 |
|
19 |
url = "https://sdk.nexa4ai.com/task"
|
20 |
|
|
|
40 |
|
41 |
if response.status_code == 200:
|
42 |
processed_inputs[input_hash] = 200
|
43 |
+
return "Your request has been submitted successfully! π We'll notify you by email π§ once everything is processed. π"
|
44 |
else:
|
45 |
processed_inputs[input_hash] = response.status_code
|
46 |
return f" Failed to submit request: {response.text}"
|