Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/Surge SDK Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"project = surge.Project.create(\n",
" name=\"Categorize this website\",\n",
" payment_per_response=0.0,\n",
" private_workforce=True,\n",
" num_workers_per_task=3,\n",
" fields_template='{{company}}',\n",
" instructions=\"You will be asked to categorize a company.\",\n",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = "1.5.11"
VERSION = "1.5.12"

with open("requirements.txt") as f:
requirements = f.read().splitlines()
Expand Down
7 changes: 3 additions & 4 deletions surge/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def create(
cls,
name: str,
payment_per_response: float = None,
private_workforce: bool = False,
private_workforce: bool = False, # Deprecated.
instructions: str = None,
questions: list = [],
qualifications_required: list = [],
Expand All @@ -99,8 +99,7 @@ def create(
name (str): Name of the project.
payment_per_response (float, optional):
How much a worker is paid (in US dollars) for an individual response.
private_workforce (bool, optional):
Indicates if the project's tasks will be done by a private workforce.
private_workforce (bool, optional): Deprecated
instructions (str, optional): Instructions shown to workers describing how they should complete the task.
questions (list, optional): An array of question objects describing the questions to be answered.
qualifications_required (list, optional): Deprecated in favor of teams_required.
Expand Down Expand Up @@ -128,7 +127,7 @@ def create(

params = {
"name": name,
"private_workforce": private_workforce,
"private_workforce": False,
"instructions": instructions,
"questions": questions_json,
"qualifications_required": teams_required,
Expand Down
1 change: 0 additions & 1 deletion tests/test_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def test_init_complete():
"link_to_work_on_task": "https://app.surgehq.ai/workers/tasks?project_id=A1B2C3-abcd-1234-wxyz-5823gd2238ac",
"avg_gold_standard_score": 65.09,
"interrater_agreement": {"What is this video?": 0.859154078549849},
"private_workforce": False,
"num_tasks_in_progress": 0,
"payment_per_response": 0.12,
"questions": [
Expand Down