Update utils/documentation.py
Browse files- utils/documentation.py +77 -9
utils/documentation.py
CHANGED
@@ -1,14 +1,82 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"""
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
st.write(f"Documentation:\n\n{TEMPLATE}")
|
|
|
1 |
import streamlit as st
|
2 |
+
import streamlit.components.v1 as components
|
3 |
|
4 |
+
# HTML content as a string
|
5 |
+
html_content = """
|
6 |
+
<!DOCTYPE html>
|
7 |
+
<html lang="en">
|
8 |
+
<head>
|
9 |
+
<style>
|
10 |
+
body {
|
11 |
+
font-family: Arial, sans-serif;
|
12 |
+
background-color: #f5f5f5;
|
13 |
+
margin: 0;
|
14 |
+
padding: 0;
|
15 |
+
color: #333;
|
16 |
+
}
|
17 |
+
.container {
|
18 |
+
max-width: 800px;
|
19 |
+
margin: 20px auto;
|
20 |
+
background: #ffffff;
|
21 |
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
22 |
+
padding: 20px;
|
23 |
+
border-radius: 10px;
|
24 |
+
}
|
25 |
+
h1 {
|
26 |
+
color: #0078D4;
|
27 |
+
text-align: center;
|
28 |
+
}
|
29 |
+
h2 {
|
30 |
+
color: #333;
|
31 |
+
border-bottom: 2px solid #0078D4;
|
32 |
+
padding-bottom: 5px;
|
33 |
+
}
|
34 |
+
p, ul {
|
35 |
+
line-height: 1.6;
|
36 |
+
}
|
37 |
+
ul {
|
38 |
+
list-style-type: square;
|
39 |
+
padding-left: 20px;
|
40 |
+
}
|
41 |
+
.example {
|
42 |
+
background: #f9f9f9;
|
43 |
+
border-left: 4px solid #0078D4;
|
44 |
+
padding: 10px;
|
45 |
+
margin: 10px 0;
|
46 |
+
font-family: monospace;
|
47 |
+
color: #444;
|
48 |
+
}
|
49 |
+
</style>
|
50 |
+
</head>
|
51 |
+
<body>
|
52 |
+
<div class="container">
|
53 |
+
<h1>Chelsea Voice Assistant</h1>
|
54 |
+
<p>Welcome! I'm <strong>Chelsea</strong>, your AI voice assistant. My mission is to help you handle routine tasks, analyze and generate images, and assess libertarian ideology. Let's make life simpler and smarter together!</p>
|
55 |
+
<h2>List of Commands</h2>
|
56 |
+
<h3>Libertarian Ideology Assessment</h3>
|
57 |
+
<p><strong>Command:</strong> <code>Long live liberty. <Your statement></code></p>
|
58 |
+
<p>Evaluate how closely a statement aligns with libertarian principles.</p>
|
59 |
+
<div class="example">Example: Long live liberty. Taxes are theft.</div>
|
60 |
|
61 |
+
<h3>Image Analysis and Generation</h3>
|
62 |
+
<p><strong>Command:</strong> <code>Show me your image. <Task or description></code></p>
|
63 |
+
<p>Analyze an image or generate a new one based on a description.</p>
|
64 |
+
<div class="example">Example: Show me your image. Where was this photo taken?</div>
|
65 |
+
<div class="example">Example: Show me your image. Generate an illustration of a futuristic city.</div>
|
66 |
+
|
67 |
+
<h3>Project Support</h3>
|
68 |
+
<p><strong>Command:</strong> <code>Pay the Ghost</code></p>
|
69 |
+
<p>Support the Chelsea project with Dogecoin contributions.</p>
|
70 |
+
<div class="example">Example: Pay the Ghost</div>
|
71 |
+
|
72 |
+
<h3>Image Creation Using the Flux Model</h3>
|
73 |
+
<p><strong>Command:</strong> <code>All we need is Flux. <Prompt for generating image></code></p>
|
74 |
+
<p>Generate creative images with prompts using the Flux model.</p>
|
75 |
+
<div class="example">Example: All we need is Flux. Create a vibrant sunset over a futuristic cityscape.</div>
|
76 |
+
</div>
|
77 |
+
</body>
|
78 |
+
</html>
|
79 |
"""
|
80 |
|
81 |
+
# Display the HTML in Streamlit
|
82 |
+
components.html(html_content, height=800, scrolling=True)
|
|