ajaxwin commited on
Commit
fe328e6
Β·
1 Parent(s): 73c779f

updated dockerfile

Browse files
Files changed (3) hide show
  1. .gitignore +2 -1
  2. Dockerfile +4 -1
  3. Docs.md +1 -2
.gitignore CHANGED
@@ -11,4 +11,5 @@ build/
11
  baseline_scores.json
12
  *.log
13
  .pytest_cache/
14
- MySolution.md
 
 
11
  baseline_scores.json
12
  *.log
13
  .pytest_cache/
14
+ MySolution.md
15
+ nltk_data
Dockerfile CHANGED
@@ -71,9 +71,12 @@ ENV PATH="/app/.venv/bin:$PATH"
71
  # Set PYTHONPATH so imports work correctly
72
  ENV PYTHONPATH="/app/env:$PYTHONPATH"
73
 
 
 
 
74
  # Health check
75
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
- CMD curl -f http://localhost:8000/health || exit 1
77
 
78
  # Run the FastAPI server
79
  # The module path is constructed to work with the /app/env structure
 
71
  # Set PYTHONPATH so imports work correctly
72
  ENV PYTHONPATH="/app/env:$PYTHONPATH"
73
 
74
+ # Download NLTK data
75
+ RUN python -m nltk.downloader wordnet omw-1.4 stopwords punkt averaged_perceptron_tagger_eng punkt_tab
76
+
77
  # Health check
78
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
79
+ CMD curl -f http://localhost:7860/health || exit 1
80
 
81
  # Run the FastAPI server
82
  # The module path is constructed to work with the /app/env structure
Docs.md CHANGED
@@ -190,7 +190,7 @@ from env.schemas import Action, ActionType
190
 
191
  env = Task3Environment()
192
  r = env.reset(seed=42)
193
- print(r.observation.extra["property_english"])
194
  # "Only the owner should be able to drain the vault..."
195
 
196
  s = env.step(Action(action_type=ActionType.GET_PROPERTY_SPECIFICATION))
@@ -277,7 +277,6 @@ The clear separation across all three tasks confirms the graders provide **meani
277
  | Shaped rewards (non-binary signal) | βœ… |
278
  | Dockerfile + port 7860 | βœ… |
279
  | `inference.py` with OpenAI client | βœ… |
280
- | `validate.py` β€” 23/23 checks pass | βœ… |
281
 
282
  ---
283
 
 
190
 
191
  env = Task3Environment()
192
  r = env.reset(seed=42)
193
+ print(r.observation.extra["property_english "])
194
  # "Only the owner should be able to drain the vault..."
195
 
196
  s = env.step(Action(action_type=ActionType.GET_PROPERTY_SPECIFICATION))
 
277
  | Shaped rewards (non-binary signal) | βœ… |
278
  | Dockerfile + port 7860 | βœ… |
279
  | `inference.py` with OpenAI client | βœ… |
 
280
 
281
  ---
282