Download app.py from Saaofi/Saad-AI: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/Saaofi/Saad-AI/resolve/main/app.py
- Command line
-
hf download hf://spaces/Saaofi/Saad-AI/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Saaofi/Saad-AI/resolve/main/app.py
629 Bytes
| import gradio as gr | |
| # استخدام موديل متخصص جداً ومستقر | |
| def chat(message, history): | |
| # الربط المباشر مع موديل Meta Llama 3 القوي | |
| interface = gr.load("models/meta-llama/Meta-Llama-3-8B-Instruct") | |
| return interface(message) | |
| # تصميم واجهة احترافية مخصصة لسعد | |
| with gr.Blocks(theme=gr.themes.Soft()) as demo: | |
| gr.Markdown("# Saad AI - Professional Assistant") | |
| gr.Markdown("نظام سعد الخاص لحلول المعادلات والأكواد وتحليل بيانات زين العراق") | |
| gr.ChatInterface(fn=chat) | |
| demo.launch() |