sedtha commited on
Commit
8a064f7
·
verified ·
1 Parent(s): c796789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,6 +11,7 @@ from PIL import Image
11
  import numpy as np
12
  from pathlib import Path
13
  import logging
 
14
 
15
  # Setup logging
16
  logging.basicConfig(level=logging.INFO)
@@ -313,8 +314,7 @@ def create_app():
313
  label="Draw Here",
314
  height=400,
315
  width=400,
316
- brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
317
- brush_radius=10
318
  )
319
  with gr.Row():
320
  draw_btn = gr.Button("🔍 Predict", variant="primary", size="lg")
@@ -399,6 +399,6 @@ if __name__ == "__main__":
399
  logger.error(f"Failed to start application: {e}")
400
  print(f"Error: {e}")
401
  print("Please ensure:")
402
- print("1. The model file 'khmer_model_weights.pth' exists in the same directory")
403
  print("2. All required packages are installed")
404
  print("3. You have proper file permissions")
 
11
  import numpy as np
12
  from pathlib import Path
13
  import logging
14
+ import os
15
 
16
  # Setup logging
17
  logging.basicConfig(level=logging.INFO)
 
314
  label="Draw Here",
315
  height=400,
316
  width=400,
317
+ brush=gr.Brush(colors=["#000000"], color_mode="fixed")
 
318
  )
319
  with gr.Row():
320
  draw_btn = gr.Button("🔍 Predict", variant="primary", size="lg")
 
399
  logger.error(f"Failed to start application: {e}")
400
  print(f"Error: {e}")
401
  print("Please ensure:")
402
+ print("1. The model file 'khmer_model_weights.pth' exists in the model/ directory")
403
  print("2. All required packages are installed")
404
  print("3. You have proper file permissions")