CineAI commited on
Commit
3186a8c
1 Parent(s): 9ee8906

Update utils/documentation.py

Browse files
Files changed (1) hide show
  1. utils/documentation.py +77 -9
utils/documentation.py CHANGED
@@ -1,14 +1,82 @@
1
  import streamlit as st
 
2
 
3
- TEMPLATE = """
4
- A complete list of commands that are designed to facilitate the use of the voice assistant Chelsea.
5
- The complete list consists of no more than 100 commands written in a txt file.
6
- The list of commands will be updated as the assistant is developed.
7
- The first version of the program (Arctic Monkeys) contains a total of 2 commands.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
- The list of commands and their use.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  """
11
 
12
- class Documentation():
13
- def execution(self):
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. &lt;Your statement&gt;</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. &lt;Task or description&gt;</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. &lt;Prompt for generating image&gt;</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)