Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ gmt_plus7 = pytz.timezone('Etc/GMT-7') # 'Etc/GMT-7' represents GMT+7
|
|
30 |
|
31 |
def authenticate(user_id):
|
32 |
|
33 |
-
url = "https://intern-api.
|
34 |
headers = {
|
35 |
"Content-Type": "application/json",
|
36 |
"Accept": "application/json",
|
@@ -114,7 +114,7 @@ def process_image_and_caption(username_input, image, caption):
|
|
114 |
def send_score(user_id, score):
|
115 |
max_retries = 10
|
116 |
while max_retries > 0:
|
117 |
-
url = "https://intern-api.
|
118 |
|
119 |
payload = {
|
120 |
"token": user_id,
|
|
|
30 |
|
31 |
def authenticate(user_id):
|
32 |
|
33 |
+
url = "https://intern-api.imtaai.com/api/subnets/2/authenticate"
|
34 |
headers = {
|
35 |
"Content-Type": "application/json",
|
36 |
"Accept": "application/json",
|
|
|
114 |
def send_score(user_id, score):
|
115 |
max_retries = 10
|
116 |
while max_retries > 0:
|
117 |
+
url = "https://intern-api.imtaai.com/api/subnets/2/grade"
|
118 |
|
119 |
payload = {
|
120 |
"token": user_id,
|