Commit
·
8955797
1
Parent(s):
0c7edbd
fix: :bug: Fix missing lang parameter leading to request error
Browse files- back_end.py +2 -1
back_end.py
CHANGED
@@ -51,6 +51,7 @@ def submit_correction(
|
|
51 |
model_correction: str,
|
52 |
username: str,
|
53 |
password: str,
|
|
|
54 |
update: bool = UPDATE,
|
55 |
):
|
56 |
auth = Authentification(username, password)
|
@@ -75,7 +76,7 @@ def submit_correction(
|
|
75 |
gr.update(),
|
76 |
) # Stay unchanged
|
77 |
gr.Info("Product successfuly updated. Many thanks!")
|
78 |
-
return next_annotation()
|
79 |
|
80 |
|
81 |
def import_random_insight(
|
|
|
51 |
model_correction: str,
|
52 |
username: str,
|
53 |
password: str,
|
54 |
+
lang: str,
|
55 |
update: bool = UPDATE,
|
56 |
):
|
57 |
auth = Authentification(username, password)
|
|
|
76 |
gr.update(),
|
77 |
) # Stay unchanged
|
78 |
gr.Info("Product successfuly updated. Many thanks!")
|
79 |
+
return next_annotation(lang=lang)
|
80 |
|
81 |
|
82 |
def import_random_insight(
|