Spaces:
Running
A newer version of the Gradio SDK is available:
6.5.1
# AmalOffload v6 — Fix Pack
تم إنشاء نسخة مُرقّعة من المشروع مع إصلاحات أساسية تمنع الأعطال الفورية وتسهّل التشغيل.
## ما الذي تم إصلاحه؟
- autostart_config.py: dedup import of PORT
background_service.py: dedup import of PORT
central_manager.py: dedup import of PORT
control.py: dedup import of PORT
dashboard.py: dedup import of PORT
DeviceManager.py: dedup import of PORT
distributed_executor.py: dedup import of PORT
dts_cli.py: dedup import of PORT
enhanced_assistant.py: dedup import of PORT
external_server.py: dedup import of PORT
internet_scanner.py: dedup import of PORT
launcher.py: dedup import of PORT
live_streaming.py: dedup import of PORT
load_balancer.py: dedup import of PORT
peer_registry.py: dedup import of PORT
peer_server.py: dedup import of PORT
remote_executor.py: dedup import of PORT
rpc_server.py: dedup import of PORT
security_layer.py: dedup import of PORT
server.py: dedup import of PORT
smart_tasks.py: dedup import of PORT
system_check.py: dedup import of PORT
system_tray.py: dedup import of PORT
task_splitter.py: dedup import of PORT
test_distributed_system.py: dedup import of PORT
test_monitor.py: dedup import of PORT
video_processing.py: dedup import of PORT
your_tasks.py: dedup import of PORT
control.py: fixed broken import line
dts_cli.py: rewritten to a minimal, valid CLI
ram_manager.py: removed BOM
templates/dashboard.html: created from index.html
config.py: added as a single source of truth for PORT
توصيات إضافية (يدويّة)
- أضِف
fastapiوuvicornإلىrequirements.txtإذا أردت تشغيلcentral_manager.py(يستخدم FastAPI). - وحّد استيراد المنفذ عبر:
واستبدل أي استخدام لـfrom config import PORTfrom peer_discovery import PORT, PORTأوCPU_PORTحسب الحاجة. - إن ظهرت مشكلة
TemplateNotFound: dashboard.htmlفقد تم إنشاءtemplates/dashboard.htmlتلقائياً. - يُفضّل تنظيف
requirements.txtمن التكرارات (انظر التوصيات في تقرير التدقيق). - اختر نقطة دخول واحدة للمشروع (مثلاً:
launcher.pyأوstartup.py) وتجنّب تشغيل أكثر من خادم في نفس العملية.
التشغيل السريع المقترح
- ثبّت المتطلبات (الأساسية فقط):
pip install flask flask_cors flask_socketio requests psutil zeroconf cryptography numpy networkx GPUtil python-dotenv - شغّل الـ Dashboard وخادم RPC معاً:
python dts_cli.py start
بالتوفيق!
- أضِف