hadadrjt commited on
Commit
55378c8
·
1 Parent(s): 18663e1

ai: Introduce JARVIS multi platform api.

Browse files
Files changed (2) hide show
  1. API.md +45 -1
  2. README.md +1 -1
API.md CHANGED
@@ -16,7 +16,7 @@ pip install gradio_client rich --upgrade --ignore-installed --break-system-packa
16
  nano jarvis # or whatever you want.
17
  ```
18
 
19
- ### JARVIS SCRIPT
20
  ```python
21
  #!/usr/bin/env python3
22
  import sys
@@ -31,6 +31,25 @@ responses = result[0][0][1]
31
  markdown = Markdown(responses)
32
  console.print(markdown)
33
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ```bash
35
  # Set permission (Linux/Android [Termux]/MacOS).
36
  # Windows users set permissions to 755 according with linux.
@@ -51,3 +70,28 @@ sudo mv jarvis /bin/ai
51
  # Now you can run with simple command.
52
  ai "Your message here."
53
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  nano jarvis # or whatever you want.
17
  ```
18
 
19
+ ### JARVIS MAIN SCRIPT
20
  ```python
21
  #!/usr/bin/env python3
22
  import sys
 
31
  markdown = Markdown(responses)
32
  console.print(markdown)
33
  ```
34
+
35
+ ### JARVIS MULTI PLATFORM SCRIPT
36
+ ```python
37
+ #!/usr/bin/env python3
38
+ import sys
39
+ from gradio_client import Client
40
+ from rich.console import Console
41
+ from rich.markdown import Markdown
42
+ console = Console()
43
+ jarvis = Client("hadadrjt/ai")
44
+ model = "JARVIS: 2.1.1" # default to JARVIS, you can change the model here.
45
+ jarvis.predict(new=model, api_name="/change_model")
46
+ input_text = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else "Hi!"
47
+ result = jarvis.predict(multi={"text": input_text}, api_name="/api")
48
+ response_text = result[0][0][1]
49
+ console.print(Markdown(response_text))
50
+ ```
51
+
52
+ ### SET PERMISSION
53
  ```bash
54
  # Set permission (Linux/Android [Termux]/MacOS).
55
  # Windows users set permissions to 755 according with linux.
 
70
  # Now you can run with simple command.
71
  ai "Your message here."
72
  ```
73
+
74
+ ### AVAILABLE MODELS
75
+ ```
76
+ Choose one of the model name for the JARVIS multi platform.
77
+
78
+ 1. JARVIS: 2.1.1
79
+ 2. DeepSeek: V3-0324
80
+ 3. DeepSeek: R1 (Reasoning)
81
+ 4. DeepSeek: R1 - Distill Qwen 14B (Reasoning)
82
+ 5. DeepSeek: R1 - Distill Qwen 32B (Reasoning)
83
+ 6. DeepSeek: R1 - Distill Llama 70B (Reasoning)
84
+ 7. Google: Gemini 2.0 Flash Thinking (Reasoning)
85
+ 8. Google: Gemini 2.5 Pro
86
+ 9. Google: Gemma 3 1B-IT
87
+ 10. Google: Gemma 3 4B-IT
88
+ 11. Google: Gemma 3 27B-IT
89
+ 12. Meta: Llama 3.1 8B Instruct
90
+ 13. Meta: Llama 3.2 3B Instruct
91
+ 14. Meta: Llama 3.3 70B Instruct
92
+ 15. Meta: Llama 4 Maverick 17B 128E Instruct
93
+ 16. Meta: Llama 4 Scout 17B 16E Instruct
94
+ 17. Qwen: Qwen2.5 VL 3B Instruct
95
+ 18. Qwen: Qwen2.5 VL 32B Instruct
96
+ 19. Qwen: Qwen2.5 VL 72B Instruct
97
+ ```
README.md CHANGED
@@ -3,7 +3,7 @@ title: JARVIS AI
3
  colorFrom: yellow
4
  colorTo: purple
5
  sdk: gradio
6
- sdk_version: 5.23.3
7
  app_file: jarvis.py
8
  pinned: true
9
  short_description: Inspired by Iron Man movies.
 
3
  colorFrom: yellow
4
  colorTo: purple
5
  sdk: gradio
6
+ sdk_version: 5.24.0
7
  app_file: jarvis.py
8
  pinned: true
9
  short_description: Inspired by Iron Man movies.