Skip to content

Commit

Permalink
Merge pull request #1058 from facebookresearch/make-task-review-server
Browse files Browse the repository at this point in the history
Create reusable React app for task results review
  • Loading branch information
meta-paul authored Nov 30, 2023
2 parents ac52ad5 + 650326a commit f26decb
Show file tree
Hide file tree
Showing 256 changed files with 36,866 additions and 38,048 deletions.
Binary file added ._data
Binary file not shown.
6 changes: 5 additions & 1 deletion .github/workflows/cypress-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches: [main]
paths-ignore:
- "**.md"
env:
HYDRA_FULL_ERROR: 1
jobs:
# This job is made to setup path filtering, learn more about it here: https://github.com/facebookresearch/Mephisto/pull/857
changes:
Expand Down Expand Up @@ -273,7 +275,9 @@ jobs:
node-version: 16.16.0

- name: 🤖 Install Mephisto
run: pip install -e .
run: |
pip install -e .
pip install detoxify
- name: 🖋 Create data directory
run: mkdir -p ~/mephisto/data
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ aws_credentials
docker-compose.local.*
env.local
my-review-interface
docker/entrypoints/*.sh
!docker/entrypoints/server.mturk.sh
!docker/entrypoints/server.prolific.sh
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ You can find complete details about the project on our [docs website](https://me

[Get started in 10 minutes](https://mephisto.ai/docs/guides/quickstart)

[How to run projects](mephisto/README.md)

## Want to help?

Check out our [guidelines for contributing](https://github.com/facebookresearch/Mephisto/blob/main/CONTRIBUTING.md) and then take a look at some of our tagged issues: [good first issue](https://github.com/facebookresearch/Mephisto/labels/good%20first%20issue), [help wanted](https://github.com/facebookresearch/Mephisto/labels/help%20wanted).
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.dev.vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
version: "3"

services:
fb_mephisto_vscode:
container_name: fb_mephisto_vscode
mephisto_dc_vscode:
container_name: mephisto_dc_vscode
build:
context: ..
dockerfile: Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
version: "3"

services:
fb_mephisto:
container_name: fb_mephisto
mephisto_dc:
container_name: mephisto_dc
build:
context: ..
dockerfile: Dockerfile
Expand Down
3 changes: 2 additions & 1 deletion examples/parlai_chat_task_demo/hydra_configs/conf/base.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#@package _global_

# Copyright (c) Meta Platforms and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#@package _global_
defaults:
- /mephisto/blueprint: parlai_chat
- /mephisto/architect: local
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#@package _global_

# Copyright (c) Meta Platforms and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#@package _global_
defaults:
- base
mephisto:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#@package _global_

# Copyright (c) Meta Platforms and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#@package _global_
defaults:
- base
mephisto:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#@package _global_

# Copyright (c) Meta Platforms and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#@package _global_
defaults:
- base
mephisto:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#@package _global_

# Copyright (c) Meta Platforms and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#@package _global_
defaults:
- base
mephisto:
Expand Down
12 changes: 5 additions & 7 deletions examples/remote_procedure/mnist/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<!---
Copyright (c) Meta Platforms and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->

# Mephisto MNIST Model Evaluator demo

This task is a simple model evaluation demo, presenting the worker with three spaces to draw images in, running an MNIST model on them to predict an output, and then allowing the worker to assess and correct that output.

Introduced in [#677](https://github.com/facebookresearch/Mephisto/pull/677), some screenshots and discussion there.
Introduced in [#677](https://github.com/facebookresearch/Mephisto/pull/677), some screenshots and discussion there.

For more details how to write your own `webapp` (ReactJS application) see example in current directory.
Also, read [short documentation](../../../mephisto/client/review_app/README.md)
for the main Review App to understand how to add review part in your `webapp`.
23 changes: 0 additions & 23 deletions examples/remote_procedure/mnist/custom-review/.gitignore

This file was deleted.

92 changes: 0 additions & 92 deletions examples/remote_procedure/mnist/custom-review/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions examples/remote_procedure/mnist/custom-review/package.json

This file was deleted.

Binary file not shown.
44 changes: 0 additions & 44 deletions examples/remote_procedure/mnist/custom-review/public/index.html

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

2 changes: 0 additions & 2 deletions examples/remote_procedure/mnist/custom-review/sample-data.csv

This file was deleted.

This file was deleted.

Loading

0 comments on commit f26decb

Please sign in to comment.