Using react in hit design layout

0

Hi!

I would like to create a task where turks have to choose between the 2 videos. The 2 videos need to play in a synchronized fashion (e.g. if I pause one video, the other pauses too). I created a react web app that can do this.

I am hoping I can port my app to AMT. When creating a project, in the design layout, can I use react? And if so I presume I have to put everything in just one file; for example, I can't have a separate file for the HTML and for the js files.

Thanks!
Bassam

bassamH
gefragt vor 4 Jahren392 Aufrufe
3 Antworten
0

Hi Bassam,

You can absolutely use your React app in your MTurk task.

Essentially, you just include the assets.crowd.aws script import, a script import for your react app, and a hidden input within <crowd-form> where your app dumps the answer data to be submitted, eg

<script src="https://assets.crowd.aws/crowd-html-elements.js"></script>
<script src="your react app's url.js"></script>

<crowd-form>
    <input type="hidden" name"answer"/>
</crowd-form>

This blog post (https://aws.amazon.com/blogs/machine-learning/build-a-custom-data-labeling-workflow-with-amazon-sagemaker-ground-truth/) talks about how to do this within the context of a SageMaker Ground Truth task, but the exact same approach works when using <crowd-form> with MTurk directly.

Reference: https://docs.aws.amazon.com/sagemaker/latest/dg/sms-ui-template-crowd-form.html

Edited by: SamH@AWS on Feb 27, 2020 1:30 PM

beantwortet vor 4 Jahren
0

Got it. Thanks a lot SamH!

bassamH
beantwortet vor 4 Jahren
0

You're welcome

beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen