mohammed-aljafry commited on
Commit
87e37f9
·
verified ·
1 Parent(s): 30e282e

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,7 +11,7 @@ import cv2
11
  import math
12
 
13
  # --- استيراد من الملفات المنظمة في مشروعك ---
14
- from model.architecture import build_interfuser_model
15
  from logic import (
16
  transform, lidar_transform, InterfuserController, ControllerConfig,
17
  Tracker, DisplayInterface, render, render_waypoints, render_self_car,
@@ -21,7 +21,7 @@ from logic import (
21
  # ==============================================================================
22
  # 1. إعدادات ومسارات النماذج
23
  # ==============================================================================
24
- WEIGHTS_DIR = "model/weights"
25
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
26
 
27
  # قاموس لتحديد الإعدادات الخاصة بكل نموذج.
@@ -211,7 +211,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
211
 
212
  with gr.Row():
213
  model_selector = gr.Dropdown(
214
- label="اختر النموذج من مجلد 'model/weights'",
215
  choices=available_models,
216
  value=available_models[0] if available_models else "لم يتم العثور على نماذج"
217
  )
 
11
  import math
12
 
13
  # --- استيراد من الملفات المنظمة في مشروعك ---
14
+ from model import build_interfuser_model
15
  from logic import (
16
  transform, lidar_transform, InterfuserController, ControllerConfig,
17
  Tracker, DisplayInterface, render, render_waypoints, render_self_car,
 
21
  # ==============================================================================
22
  # 1. إعدادات ومسارات النماذج
23
  # ==============================================================================
24
+ WEIGHTS_DIR = "model"
25
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
26
 
27
  # قاموس لتحديد الإعدادات الخاصة بكل نموذج.
 
211
 
212
  with gr.Row():
213
  model_selector = gr.Dropdown(
214
+ label="اختر النموذج من مجلد 'model'",
215
  choices=available_models,
216
  value=available_models[0] if available_models else "لم يتم العثور على نماذج"
217
  )