sriting commited on
Commit
ed51c69
·
1 Parent(s): 53d22d7

feat: add demo

Browse files
Files changed (2) hide show
  1. config.py +16 -12
  2. start.sh +4 -4
config.py CHANGED
@@ -63,6 +63,20 @@ EXAMPLES = {
63
  "description": "Create an HTML page with a gradient background that transitions smoothly between multiple colors. Add a central heading text over the gradient"
64
  }
65
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  "Interactive Apps": [
67
  {
68
  "title": "📋 TODO list",
@@ -73,8 +87,8 @@ EXAMPLES = {
73
  "description": "Create a sticky note wall where users can create, edit, drag, and delete colorful sticky notes. Make it visually appealing"
74
  },
75
  {
76
- "title": "⌨️ Typing Speed Game",
77
- "description": "Build a typing speed test web app. Randomly show a sentence, and track the user's typing speed in WPM (words per minute). Provide live feedback with colors and accuracy. Make it visually appealing."
78
  },
79
  {
80
  "title": "💰 Personal Finance Tracker",
@@ -90,15 +104,5 @@ EXAMPLES = {
90
  "title": "🖼️ Image Filter Tool",
91
  "description": "Create an image filter tool where users can upload an image and apply filters like grayscale, blur, brightness, contrast, etc. Show real-time preview."
92
  }
93
- ],
94
- "Games & Visualizations": [
95
- {
96
- "title": "🧩 Maze Generator and Pathfinding Visualizer",
97
- "description": "Create a maze generator and pathfinding visualizer. Randomly generate a maze and visualize A* algorithm solving it step by step. Use canvas and animations. Make it visually appealing."
98
- },
99
- {
100
- "title": "💥 Particle Explosion Effect",
101
- "description": "Implement a particle explosion effect when the user clicks anywhere on the page. Use canvas and JavaScript to animate colorful particles that fade out."
102
- }
103
  ]
104
  }
 
63
  "description": "Create an HTML page with a gradient background that transitions smoothly between multiple colors. Add a central heading text over the gradient"
64
  }
65
  ],
66
+ "Games & Visualizations": [
67
+ {
68
+ "title": "🧩 Maze Generator and Pathfinding Visualizer",
69
+ "description": "Create a maze generator and pathfinding visualizer. Randomly generate a maze and visualize A* algorithm solving it step by step. Use canvas and animations. Make it visually appealing."
70
+ },
71
+ {
72
+ "title": "💥 Particle Explosion Effect",
73
+ "description": "Implement a particle explosion effect when the user clicks anywhere on the page. Use canvas and JavaScript to animate colorful particles that fade out."
74
+ },
75
+ {
76
+ "title": "⌨️ Typing Speed Game",
77
+ "description": "Build a typing speed test web app. Randomly show a sentence, and track the user's typing speed in WPM (words per minute). Provide live feedback with colors and accuracy. Make it visually appealing."
78
+ },
79
+ ],
80
  "Interactive Apps": [
81
  {
82
  "title": "📋 TODO list",
 
87
  "description": "Create a sticky note wall where users can create, edit, drag, and delete colorful sticky notes. Make it visually appealing"
88
  },
89
  {
90
+ "title": "📱 Liquid Glass Notification Panel",
91
+ "description": "Create a mobile-style UI using HTML, CSS, and JavaScript: a home screen with app icons and a pull-down notification panel. The panel should feature a liquid glass (frosted glass) visual effect when pulled down."
92
  },
93
  {
94
  "title": "💰 Personal Finance Tracker",
 
104
  "title": "🖼️ Image Filter Tool",
105
  "description": "Create an image filter tool where users can upload an image and apply filters like grayscale, blur, brightness, contrast, etc. Show real-time preview."
106
  }
 
 
 
 
 
 
 
 
 
 
107
  ]
108
  }
start.sh CHANGED
@@ -1,15 +1,15 @@
1
  #!/bin/bash
2
 
3
  # 设置环境变量
4
- export API_URL="https://api.minimax.chat/v1/text/chatcompletion_v2"
5
  export MODEL_CONTROL_DEFAULTS='{"tokens_to_generate": 40000, "temperature": 1, "top_p": 0.95}'
6
- export MODEL_VERSION="MiniMax-Reasoning-01"
7
  export API_KEY="your_api_key_here" # 请替换为你的实际API密钥
8
 
9
  # 可选环境变量
10
- export SYSTEM_PROMPT="你是小爱同学,一个有用的AI助手"
11
  export MULTIMODAL="ON"
12
- export SYSTEM_NAME="小爱同学"
13
  export USER_NAME="用户"
14
 
15
  # 启动应用
 
1
  #!/bin/bash
2
 
3
  # 设置环境变量
4
+ export API_URL="https://api.minimaxi.chat/v1/text/chatcompletion_v2"
5
  export MODEL_CONTROL_DEFAULTS='{"tokens_to_generate": 40000, "temperature": 1, "top_p": 0.95}'
6
+ export MODEL_VERSION="MiniMax-M1"
7
  export API_KEY="your_api_key_here" # 请替换为你的实际API密钥
8
 
9
  # 可选环境变量
10
+ export SYSTEM_PROMPT="你是MiniMax M1,一个有用的AI助手"
11
  export MULTIMODAL="ON"
12
+ export SYSTEM_NAME="MiniMax M1"
13
  export USER_NAME="用户"
14
 
15
  # 启动应用