pearmut 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pearmut/cli.py CHANGED
@@ -45,7 +45,7 @@ def _run(args_unknown):
45
45
 
46
46
  uvicorn.run(
47
47
  app,
48
- host="127.0.0.1",
48
+ host="0.0.0.0",
49
49
  port=args.port,
50
50
  reload=False,
51
51
  # log_level="info",
@@ -182,7 +182,7 @@ def _add_single_campaign(data_file, overwrite, server):
182
182
  # Template defaults to "basic" if not specified
183
183
  assignment = campaign_data["info"]["assignment"]
184
184
  # use random words for identifying users
185
- rng = random.Random(campaign_data["campaign_id"])
185
+ rng = random.Random()
186
186
  rword = wonderwords.RandomWord(rng=rng)
187
187
 
188
188
  # Parse users specification from info
@@ -265,6 +265,10 @@ def _add_single_campaign(data_file, overwrite, server):
265
265
  raise ValueError("'users' list must contain all strings or all dicts.")
266
266
  else:
267
267
  raise ValueError("'users' must be an integer or a list.")
268
+
269
+ if "protocol" not in campaign_data["info"]:
270
+ campaign_data["info"]["protocol"] = "ESA"
271
+ print("Warning: 'protocol' not specified in campaign info. Defaulting to 'ESA'.")
268
272
 
269
273
  # For task-based, data is a dict mapping user_id -> tasks
270
274
  # For single-stream, data is a flat list (shared among all users)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -308,7 +308,7 @@ Management link (shown when adding campaigns or running server) provides:
308
308
  - Task progress reset (data preserved)
309
309
  - Download progress and annotations
310
310
 
311
- <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/8953252c-d7b1-428c-a974-5bc7501457c7" />
311
+ <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/5a27271c-1e80-4e54-b242-c361265df86e" />
312
312
 
313
313
  Completion tokens are shown at annotation end for verification (download correct tokens from dashboard). Incorrect tokens can be shown if quality control fails.
314
314
 
@@ -1,6 +1,6 @@
1
1
  pearmut/app.py,sha256=IZNmeKTAuLcf9FggvlHktWDbIGxfykjSRM-sI8Byfik,10179
2
2
  pearmut/assignment.py,sha256=_0hNXtA-Mgn6bRyRVjgeGxERKRvBezR3NmEwx2uME38,11685
3
- pearmut/cli.py,sha256=tYzCs7bTuKpt8pIbv8L5SpFHjIVteYyo12KWdrWT1U0,20642
3
+ pearmut/cli.py,sha256=eMiuNcEztWDuEsfCA9n_Jj0wDDetzXFwCN6rOOZHySw,20805
4
4
  pearmut/utils.py,sha256=Rl_i-WCaJN3p_VG5iVL0fSeI481jcJUUEZO6HKx62PE,4347
5
5
  pearmut/static/basic.bundle.js,sha256=9cz_5Jq0KgnWTwkuGqRT2eAY3FHQJM2f2OP1RnNi0s4,110582
6
6
  pearmut/static/basic.html,sha256=Nm0t3uGsbUUso_lFpIpMMEe9iBEDS_Og4tz5vdWhJGo,5473
@@ -9,9 +9,9 @@ pearmut/static/dashboard.html,sha256=HXZzoz44f7LYtAfuP7uQioxTkNmo2_fAN0v2C2s1lAs
9
9
  pearmut/static/favicon.svg,sha256=gVPxdBlyfyJVkiMfh8WLaiSyH4lpwmKZs8UiOeX8YW4,7347
10
10
  pearmut/static/index.html,sha256=yMttallApd0T7sxngUrdwCDrtTQpRIFF0-4W0jfXejU,835
11
11
  pearmut/static/style.css,sha256=hI_Mbvq6BbXfsp-WMpx73tsOL_6QflgrSV1um-3c-hU,4101
12
- pearmut-0.3.1.dist-info/licenses/LICENSE,sha256=GtR6RcTdRn-P23h5pKFuWSLZrLPD0ytHAwSOBt7aLpI,1071
13
- pearmut-0.3.1.dist-info/METADATA,sha256=_8Wp8dbCNV9glYKPfqrAN_AV9G3WeytqcgTzjoMeDnU,15606
14
- pearmut-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- pearmut-0.3.1.dist-info/entry_points.txt,sha256=eEA9LVWsS3neQbMvL_nMvEw8I0oFudw8nQa1iqxOiWM,45
16
- pearmut-0.3.1.dist-info/top_level.txt,sha256=CdgtUM-SKQDt6o5g0QreO-_7XTBP9_wnHMS1P-Rl5Go,8
17
- pearmut-0.3.1.dist-info/RECORD,,
12
+ pearmut-0.3.2.dist-info/licenses/LICENSE,sha256=GtR6RcTdRn-P23h5pKFuWSLZrLPD0ytHAwSOBt7aLpI,1071
13
+ pearmut-0.3.2.dist-info/METADATA,sha256=hZqSfG_P5fZxAt1-WyIvkuj8o9DJT0tGqFyVRWmAW3A,15606
14
+ pearmut-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ pearmut-0.3.2.dist-info/entry_points.txt,sha256=eEA9LVWsS3neQbMvL_nMvEw8I0oFudw8nQa1iqxOiWM,45
16
+ pearmut-0.3.2.dist-info/top_level.txt,sha256=CdgtUM-SKQDt6o5g0QreO-_7XTBP9_wnHMS1P-Rl5Go,8
17
+ pearmut-0.3.2.dist-info/RECORD,,