Vaish6 commited on
Commit
0529d25
·
verified ·
1 Parent(s): d5eb0f5

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +2 -2
Dockerfile CHANGED
@@ -4,7 +4,7 @@ WORKDIR /app
4
 
5
  # Install dependencies as Root
6
  COPY pyproject.toml .
7
- RUN pip install uv && uv pip install --system openenv-core pydantic numpy opencv-python-headless python-dotenv requests openai transformers torch torchvision Pillow gradio
8
 
9
  # Setup Non-Root User for Hugging Face Spaces Security Policy
10
  RUN useradd -m -u 1000 user
 
4
 
5
  # Install dependencies as Root
6
  COPY pyproject.toml .
7
+ RUN pip install uv && uv pip install --system openenv-core pydantic numpy opencv-python-headless python-dotenv requests openai transformers torch torchvision Pillow "gradio<5.0"
8
 
9
  # Setup Non-Root User for Hugging Face Spaces Security Policy
10
  RUN useradd -m -u 1000 user
app.py CHANGED
@@ -69,7 +69,7 @@ custom_theme = gr.themes.Soft(
69
  neutral_hue="slate"
70
  )
71
 
72
- with gr.Blocks(theme=custom_theme, title="MetaOCT Virtual Clinic") as demo:
73
  gr.Markdown("# 👁️ MetaOCT: Virtual Medical Clinic (POMDP)")
74
  gr.Markdown("Prove your diagnostic efficiency. You have a limited budget. Perform necessary scans before extracting the final diagnosis! Made for the Meta OpenEnv Challenge.")
75
 
@@ -113,4 +113,4 @@ with gr.Blocks(theme=custom_theme, title="MetaOCT Virtual Clinic") as demo:
113
  btn_diagnose.click(fn=ui_step_diagnose, inputs=[env_state, diagnosis_dropdown], outputs=[env_state, budget_display, clinical_log, scan_image, status_box])
114
 
115
  if __name__ == "__main__":
116
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
69
  neutral_hue="slate"
70
  )
71
 
72
+ with gr.Blocks(title="MetaOCT Virtual Clinic") as demo:
73
  gr.Markdown("# 👁️ MetaOCT: Virtual Medical Clinic (POMDP)")
74
  gr.Markdown("Prove your diagnostic efficiency. You have a limited budget. Perform necessary scans before extracting the final diagnosis! Made for the Meta OpenEnv Challenge.")
75
 
 
113
  btn_diagnose.click(fn=ui_step_diagnose, inputs=[env_state, diagnosis_dropdown], outputs=[env_state, budget_display, clinical_log, scan_image, status_box])
114
 
115
  if __name__ == "__main__":
116
+ demo.launch(server_name="0.0.0.0", server_port=7860, theme=custom_theme)