Commit 2b4d928a by Vik Paruchuri

removing pyc and modify readme

parent 189d5675
.idea/
__pycache__/
models/
*.pyc
.idea/
__pycache__
__pycache__/
models/
......@@ -6,9 +6,9 @@ Runnable files:
Generates test models when used like: python create_test_models.py train_file prompt_file model_path. Use python create_test_models.py train.tsv prompt.txt models/essay_set_1.p to generate a model using sample data.
2. pyxserver_wsgi.py
2. test_server_code/pyxserver_wsgi.py
Starts a server instance that can be sent answers to score. Calls grade.py to score responses. Run server with gunicorn -w 4 -b 127.0.0.1:3031 pyxserver_wsgi:application .
Starts a server instance that can be sent answers to score. Calls grade.py to score responses. Run server with gunicorn -w 4 -b 127.0.0.1:3031 pyxserver_wsgi:application . This can also be run
3. tests/test.py
......
......@@ -4,11 +4,11 @@ Runnable files:
1. create_test_models.py
Generates test models when used like: python create_test_models.py train_file prompt_file model_path. Use python create_test_models.py train.tsv prompt.txt models/essay_set_1.txt to generate a model using sample data.
Generates test models when used like: python create_test_models.py train_file prompt_file model_path. Use python create_test_models.py train.tsv prompt.txt models/essay_set_1.p to generate a model using sample data.
2. pyxserver_wsgi.py
2. test_server_code/pyxserver_wsgi.py
Starts a server instance that can be sent answers to score. Calls grade.py to score responses. Run server with gunicorn -w 4 -b 127.0.0.1:3031 pyxserver_wsgi:application .
Starts a server instance that can be sent answers to score. Calls grade.py to score responses. Run server with gunicorn -w 4 -b 127.0.0.1:3031 pyxserver_wsgi:application . This can also be run
3. tests/test.py
......
File deleted
File deleted
hello helo hi dfdfdf
......@@ -18,7 +18,7 @@ RUN_URL = 'http://127.0.0.1:3031/' # Victor's VM ...
RUN_URL = 'http://sandbox-runserver-001.m.edx.org:8080/'
RUN_URL = 'http://sandbox-runserver.elb.edx.org:80/'
GRADER_ROOT = os.path.dirname(__file__)
GRADER_ROOT = os.path.join(os.path.dirname(__file__),'..')
# AWS
......
# Not django (for now), but use the same settings format anyway
import json
import os
from path import path
import sys
ROOT_PATH = path(__file__).dirname()
REPO_PATH = ROOT_PATH
ENV_ROOT = REPO_PATH.dirname()
# DEFAULTS
DEBUG = False
# Must end in '/'
RUN_URL = 'http://127.0.0.1:3031/' # Victor's VM ...
RUN_URL = 'http://sandbox-runserver-001.m.edx.org:8080/'
RUN_URL = 'http://sandbox-runserver.elb.edx.org:80/'
GRADER_ROOT = os.path.join(os.path.dirname(__file__),'..')
# AWS
if os.path.isfile(ENV_ROOT / "env.json"):
print "Opening env.json file"
with open(ENV_ROOT / "env.json") as env_file:
ENV_TOKENS = json.load(env_file)
RUN_URL = ENV_TOKENS['RUN_URL']
LOG_DIR = ENV_TOKENS['LOG_DIR']
# Should be absolute path to 6.00 grader dir.
# NOTE: This means we only get one version of 6.00 graders available--has to
# be the same for internal and external class. Not critical -- can always
# use different grader file if want different problems.
GRADER_ROOT = ENV_TOKENS.get('GRADER_ROOT')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment