Spaces:
Sleeping
Sleeping
File size: 9,418 Bytes
46eb5e3 0096450 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
import streamlit as st
st.markdown("""## The evolution of AI""")
st.markdown("""
| Level | Description | Create & Model | Python ๐ | HTML5 ๐ธ๏ธ | JavaScript ๐ |
|-------|-------------|----------------|-----------|-----------|--------------|
| Level 1 | ๐ฃ๏ธ Chatbots, AI with conversational language | Chatbots | `import chatbot` | `<script src="chatbot.js"></script>` | `const chatbot = new Chatbot();` |
| Level 2 | ๐ง Reasoners, human-level problem-solving | Reasoners | `import reasoner` | `<script src="reasoner.js"></script>` | `const reasoner = new Reasoner();` |
| Level 3 | ๐ค Agents, systems that can take actions | Agents | `import agent` | `<script src="agent.js"></script>` | `const agent = new Agent();` |
| Level 4 | ๐ก Innovators, AI that can aid in invention | Innovators | `import innovator` | `<script src="innovator.js"></script>` | `const innovator = new Innovator();` |
| Level 5 | ๐ข Organizations, AI that can do the work of an organization | Organizations | `import organization` | `<script src="organization.js"></script>` | `const organization = new Organization();` |
| Level | Stage | Description | Creation/Model |
|-------|-------|-------------|----------------|
| 1 | ๐ฃ๏ธ Data Collection | Gather and preprocess datasets for language models | ๐ฌ Chatbots |
| 2 | ๐ง Model Architecture | Design neural networks for basic reasoning tasks | ๐งฎ Problem Solvers |
| 3 | ๐ค Algorithm Implementation | Develop action-oriented systems using Python/TensorFlow | ๐ฎ Autonomous Agents |
| 4 | ๐ก Creative AI | Build models capable of generating novel solutions (e.g. GPT, DALL-E) | ๐จ Inventive Systems |
| 5 | ๐ข Full-Stack AI Systems | Create end-to-end AI solutions with HTML5/JS frontends and distributed backends | ๐๏ธ Organizations |
""")
st.markdown("## The Evolution of AI")
# HTML and SVG for the animated diagram
html_content = """
<style>
.stage {
font-family: Arial, sans-serif;
font-size: 14px;
color: #333;
}
.level {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.level svg {
margin-right: 10px;
}
.description {
flex-grow: 1;
}
</style>
<div class="stage">
<div class="level">
<svg width="30" height="30">
<circle cx="15" cy="15" r="10" fill="#3498db" />
<animate attributeName="r" from="10" to="12" dur="1s" repeatCount="indefinite" />
</svg>
<div class="description">๐ฃ๏ธ Level 1: Chatbots, AI with conversational language (Chatbots)</div>
</div>
<div class="level">
<svg width="30" height="30">
<rect x="5" y="5" width="20" height="20" fill="#2ecc71" />
<animate attributeName="width" from="20" to="22" dur="1s" repeatCount="indefinite" />
</svg>
<div class="description">๐ง Level 2: Reasoners, human-level problem-solving (Reasoners)</div>
</div>
<div class="level">
<svg width="30" height="30">
<polygon points="15,5 25,25 5,25" fill="#e74c3c" />
<animate attributeName="points" values="15,5 25,25 5,25; 14,4 24,24 4,24; 15,5 25,25 5,25" dur="1s" repeatCount="indefinite" />
</svg>
<div class="description">๐ค Level 3: Agents, systems that can take actions (Agents)</div>
</div>
<div class="level">
<svg width="30" height="30">
<circle cx="15" cy="15" r="10" fill="#f39c12" />
<animate attributeName="fill" values="#f39c12;#e67e22;#f39c12" dur="1s" repeatCount="indefinite" />
</svg>
<div class="description">๐ก Level 4: Innovators, AI that can aid in invention (Innovators)</div>
</div>
<div class="level">
<svg width="30" height="30">
<rect x="5" y="5" width="20" height="20" fill="#9b59b6" />
<animate attributeName="height" from="20" to="22" dur="1s" repeatCount="indefinite" />
</svg>
<div class="description">๐ข Level 5: Organizations, AI that can do the work of an organization (Organizations)</div>
</div>
</div>
"""
# Display the HTML content with SVG animations in Streamlit
st.components.v1.html(html_content, height=300)
# The markdown table for reference
st.markdown("""
| Level | Description | Create & Model | Python ๐ | HTML5 ๐ธ๏ธ | JavaScript ๐ |
|-------|-------------|----------------|-----------|-----------|--------------|
| Level 1 | ๐ฃ๏ธ Chatbots, AI with conversational language | Chatbots | `import chatbot` | `<script src="chatbot.js"></script>` | `const chatbot = new Chatbot();` |
| Level 2 | ๐ง Reasoners, human-level problem-solving | Reasoners | `import reasoner` | `<script src="reasoner.js"></script>` | `const reasoner = new Reasoner();` |
| Level 3 | ๐ค Agents, systems that can take actions | Agents | `import agent` | `<script src="agent.js"></script>` | `const agent = new Agent();` |
| Level 4 | ๐ก Innovators, AI that can aid in invention | Innovators | `import innovator` | `<script src="innovator.js"></script>` | `const innovator = new Innovator();` |
| Level 5 | ๐ข Organizations, AI that can do the work of an organization | Organizations | `import organization` | `<script src="organization.js"></script>` | `const organization = new Organization();` |
""")
import streamlit as st
st.set_page_config(page_title="AI Evolution", layout="wide")
st.markdown("""
# The Evolution of AI
This interactive diagram shows the stages of AI development, from simple chatbots to complex organizational systems.
""")
# Embed the JavaScript animation
st.components.v1.html("""
<div id="ai-evolution-diagram" style="width: 100%; height: 500px;"></div>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script>
const width = document.getElementById('ai-evolution-diagram').clientWidth;
const height = 500;
const svg = d3.select("#ai-evolution-diagram")
.append("svg")
.attr("width", width)
.attr("height", height);
const stages = [
{ level: 1, name: "Chatbots", icon: "๐ฃ๏ธ" },
{ level: 2, name: "Problem Solvers", icon: "๐ง " },
{ level: 3, name: "Autonomous Agents", icon: "๐ค" },
{ level: 4, name: "Inventive Systems", icon: "๐ก" },
{ level: 5, name: "Organizations", icon: "๐ข" }
];
const xScale = d3.scaleLinear()
.domain([1, 5])
.range([50, width - 50]);
const yScale = d3.scaleLinear()
.domain([0, 1])
.range([height - 50, 50]);
// Draw connecting lines
svg.selectAll("line")
.data(stages.slice(0, -1))
.enter()
.append("line")
.attr("x1", d => xScale(d.level))
.attr("y1", yScale(0.5))
.attr("x2", d => xScale(d.level + 1))
.attr("y2", yScale(0.5))
.attr("stroke", "#ccc")
.attr("stroke-width", 2);
// Create groups for each stage
const stageGroups = svg.selectAll("g")
.data(stages)
.enter()
.append("g")
.attr("transform", d => `translate(${xScale(d.level)}, ${yScale(0.5)})`);
// Add circles
stageGroups.append("circle")
.attr("r", 30)
.attr("fill", "#f0f0f0")
.attr("stroke", "#333")
.attr("stroke-width", 2);
// Add icons
stageGroups.append("text")
.attr("text-anchor", "middle")
.attr("dy", "0.3em")
.attr("font-size", "24px")
.text(d => d.icon);
// Add labels
stageGroups.append("text")
.attr("text-anchor", "middle")
.attr("dy", "3em")
.text(d => d.name);
// Animation
function animateStages() {
stageGroups.transition()
.duration(1000)
.attr("transform", (d, i) => `translate(${xScale(d.level)}, ${yScale(0.5 + Math.sin(i) * 0.1)})`)
.on("end", animateStages);
}
animateStages();
</script>
""", height=550)
# Display the markdown tables
st.markdown("""
## Stages of AI Development
| Level | Stage | Description | Creation/Model |
|-------|-------|-------------|----------------|
| 1 | ๐ฃ๏ธ Data Collection | Gather and preprocess datasets for language models | ๐ฌ Chatbots |
| 2 | ๐ง Model Architecture | Design neural networks for basic reasoning tasks | ๐งฎ Problem Solvers |
| 3 | ๐ค Algorithm Implementation | Develop action-oriented systems using Python/TensorFlow | ๐ฎ Autonomous Agents |
| 4 | ๐ก Creative AI | Build models capable of generating novel solutions (e.g. GPT, DALL-E) | ๐จ Inventive Systems |
| 5 | ๐ข Full-Stack AI Systems | Create end-to-end AI solutions with HTML5/JS frontends and distributed backends | ๐๏ธ Organizations |
## AI Development Tools
| Level | Description | Create & Model | Python ๐ | HTML5 ๐ธ๏ธ | JavaScript ๐ |
|-------|-------------|----------------|-----------|-----------|--------------|
| Level 1 | ๐ฃ๏ธ Chatbots, AI with conversational language | Chatbots | `import chatbot` | `<script src="chatbot.js"></script>` | `const chatbot = new Chatbot();` |
| Level 2 | ๐ง Reasoners, human-level problem-solving | Reasoners | `import reasoner` | `<script src="reasoner.js"></script>` | `const reasoner = new Reasoner();` |
| Level 3 | ๐ค Agents, systems that can take actions | Agents | `import agent` | `<script src="agent.js"></script>` | `const agent = new Agent();` |
| Level 4 | ๐ก Innovators, AI that can aid in invention | Innovators | `import innovator` | `<script src="innovator.js"></script>` | `const innovator = new Innovator();` |
| Level 5 | ๐ข Organizations, AI that can do the work of an organization | Organizations | `import organization` | `<script src="organization.js"></script>` | `const organization = new Organization();` |
""")
|