gpt4 book ai didi

boto3 - 使用 Boto3 创建的命中不会出现在沙盒中的 "Manage Batches"下

转载 作者:行者123 更新时间:2023-12-05 06:36:21 25 4
gpt4 key购买 nike

正如标题所说,我使用以下代码(显然经过编辑)使用 Boto3 创建了一些 HITS:

import boto3

# this is the sandbox server
mturk = boto3.client(
'mturk',
aws_access_key_id="REDACTED",
aws_secret_access_key="REDACTED",
region_name='us-east-1',
endpoint_url='https://mturk-requester-sandbox.us-east-1.amazonaws.com'
)



# creates a hit - note that it accesses a file for the xml-formatted question
def create_test_hit():
question = open('path/to/mlearnBoto_question.xml', mode='r').read()

new_hit = mturk.create_hit(
Title='Title',
Description='Task description',
Keywords='language, psychology, experiment',
Reward='2',
MaxAssignments=1,
LifetimeInSeconds=75600,
AssignmentDurationInSeconds=10800,
AutoApprovalDelayInSeconds=604800,
Question=question
)

create_test_hit()

但是,批处理不会出现在链接 https://requestersandbox.mturk.com/manage 的“管理”选项卡中(一切都是 0)。

为了确定,我跑了

pprint(mturk.list_hits())

事实上,我的 HIT 就在那里。

我是不是没看懂?我不应该能够在“管理”选项卡中看到我在 Boto 中创建的 HIT 吗?如果没有,我在哪里可以看到它们?

最佳答案

尝试 https://github.com/jtjacques/mturk-manage

The management console is entirely JavaScript based and runs locally in your web browser. It replicates most of the basic functionality removed with the Manage HITs individually module in the December 2017 changes. You will need your API keys to use the tool but these are not stored nor transmitted to myself or any third-party.

来源:https://stackoverflow.com/a/48404999/5511061

关于boto3 - 使用 Boto3 创建的命中不会出现在沙盒中的 "Manage Batches"下,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49156935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com