3morixd commited on
Commit
81bc5a7
ยท
verified ยท
1 Parent(s): 693639f

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +71 -0
app.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), title="dispatchAI Hub") as demo:
4
+ gr.Markdown("""
5
+ # ๐Ÿš€ dispatchAI Hub
6
+
7
+ **Small. Mobile. Free. UAE-built.**
8
+
9
+ 31 verified working models. 0 broken. 0 partial. All tested.
10
+
11
+ ---
12
+
13
+ ## ๐Ÿ“ฆ Models (36 total)
14
+
15
+ | Category | Count | Link |
16
+ |----------|-------|------|
17
+ | Working chat models | 31 | [Browse](https://huggingface.co/dispatchAI) |
18
+ | Embedding models | 2 | [Collection](https://huggingface.co/dispatchAI/collections) |
19
+ | Non-chat (ASR) | 3 | โ€” |
20
+ | Broken | 0 | โ€” |
21
+
22
+ ## ๐ŸŽฎ Demos
23
+
24
+ | Demo | Link |
25
+ |------|------|
26
+ | Mobile Chat | [Open](https://huggingface.co/spaces/dispatchAI/mobile-chat-demo) |
27
+ | Mobile Agent (1B) | [Open](https://huggingface.co/spaces/dispatchAI/mobile-agent) |
28
+ | Function Calling | [Open](https://huggingface.co/spaces/dispatchAI/function-calling-agent) |
29
+ | Quant Playground | [Open](https://huggingface.co/spaces/dispatchAI/quant-playground) |
30
+ | Leaderboard | [Open](https://huggingface.co/spaces/dispatchAI/mobile-llm-leaderboard) |
31
+ | Cost Calculator | [Open](https://huggingface.co/spaces/dispatchAI/phone-vs-cloud) |
32
+ | Model Recommender | [Open](https://huggingface.co/spaces/dispatchAI/model-recommender) |
33
+ | GGUF Converter | [Open](https://huggingface.co/spaces/dispatchAI/gguf-converter) |
34
+ | Safety Classifier | [Open](https://huggingface.co/spaces/dispatchAI/mcp-safety-classifier) |
35
+ | Tokenizer Visualizer | [Open](https://huggingface.co/spaces/dispatchAI/tokenizer-visualizer) |
36
+
37
+ ## ๐Ÿงฐ MCP Tools
38
+
39
+ ```json
40
+ {"mcpServers":{"dispatchai":{"url":"https://huggingface.co/spaces/dispatchAI/mcp-hub/mcp"}}}
41
+ ```
42
+
43
+ ## ๐Ÿ”ง SDK
44
+
45
+ ```bash
46
+ pip install dispatchai
47
+ ```
48
+
49
+ ```python
50
+ from dispatchai import load_model
51
+ model = load_model("SmolLM2-135M-Instruct-mobile", backend="gguf")
52
+ print(model.chat("What is the capital of France?"))
53
+ ```
54
+
55
+ ## ๐Ÿ“ฑ Phone-Verified (Snapdragon 865)
56
+
57
+ | Model | Size | Speed |
58
+ |-------|------|-------|
59
+ | SmolLM2-135M | 101MB | 46.0 t/s |
60
+ | Qwen2.5-0.5B-int4 | 469MB | 23.2 t/s |
61
+ | Llama-3.2-1B-Q4 | 770MB | 5.4 t/s |
62
+
63
+ ---
64
+
65
+ Dispatch AI (FZE) โ€” Sharjah, UAE. License No. 10818.
66
+ ๐ŸŒ [dispatchai.ai](https://www.dispatchai.ai) | ๐Ÿค— [huggingface.co/dispatchAI](https://huggingface.co/dispatchAI)
67
+
68
+ *I think, therefore I ship.*
69
+ """)
70
+
71
+ demo.launch()