Jibrann commited on
Commit
07fbe17
·
verified ·
1 Parent(s): 6cdbdf2

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. inference.py +1 -5
Dockerfile CHANGED
@@ -65,6 +65,6 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
65
 
66
  # Run the FastAPI server
67
  # The module path is constructed to work with the /app/env structure
68
- # CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
69
  ENV ENABLE_WEB_INTERFACE=true
 
70
  CMD ["sh", "-c", "cd /app/env && python3 inference.py"]
 
65
 
66
  # Run the FastAPI server
67
  # The module path is constructed to work with the /app/env structure
 
68
  ENV ENABLE_WEB_INTERFACE=true
69
+ CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
70
  CMD ["sh", "-c", "cd /app/env && python3 inference.py"]
inference.py CHANGED
@@ -90,7 +90,6 @@ SYSTEM_PROMPT = """
90
  The output must be parseable and valid for AppAction(**json_output).""".strip()
91
 
92
  MESSAGES = [{"role": "system", "content": SYSTEM_PROMPT}]
93
- HISTORY = []
94
 
95
 
96
  def _fallback_action() -> AppAction:
@@ -181,14 +180,11 @@ def main() -> None:
181
 
182
  MESSAGES.append({"role": "assistant", "content": message_content})
183
  print(message_content)
184
- HISTORY.append(observation)
185
  print(observation)
186
 
187
  if observation.isDone:
188
  break
189
-
190
- print(HISTORY)
191
-
192
 
 
193
  if __name__ == "__main__":
194
  main()
 
90
  The output must be parseable and valid for AppAction(**json_output).""".strip()
91
 
92
  MESSAGES = [{"role": "system", "content": SYSTEM_PROMPT}]
 
93
 
94
 
95
  def _fallback_action() -> AppAction:
 
180
 
181
  MESSAGES.append({"role": "assistant", "content": message_content})
182
  print(message_content)
 
183
  print(observation)
184
 
185
  if observation.isDone:
186
  break
 
 
 
187
 
188
+ segmentGrade ,
189
  if __name__ == "__main__":
190
  main()