Updated index.html
Browse files- index.html +79 -71
index.html
CHANGED
|
@@ -1,26 +1,27 @@
|
|
| 1 |
<html>
|
| 2 |
<head>
|
| 3 |
-
<link rel="stylesheet" href="style.css">
|
| 4 |
-
<!--<script src="client.js" type="module"></script>-->
|
| 5 |
</head>
|
|
|
|
| 6 |
<body>
|
| 7 |
<div class="main-company" id="rrMain">
|
| 8 |
-
<h3 class="main-heading">RR Technologies - Poster Board</h3>
|
| 9 |
<p class="details">
|
| 10 |
<ul>
|
| 11 |
<li>This site is designed as a platform for fostering innovative ideas and conducting comprehensive market research and feasibility analyses.</li>
|
| 12 |
<li>It operates as a dynamic poster board environment, enabling businesses to showcase their products and offer targeted promotions.</li>
|
| 13 |
-
<li>This site design and overall aesthetic are regularly reviewed and updated to ensure
|
| 14 |
<li>The platform provides a space for businesses to publicly advertise their offerings and disseminate promotional campaigns.</li>
|
| 15 |
<li>All content pertaining to businesses is sourced directly from their owners and published with the understanding that it represents their official brand messaging.</li>
|
| 16 |
</ul>
|
| 17 |
</p>
|
| 18 |
<p>
|
| 19 |
<span class="disclaimer">Disclaimer:</span>
|
| 20 |
-
<ul>
|
|
|
|
| 21 |
<li>We are dedicated to protecting user privacy and ensuring a secure environment.</li>
|
| 22 |
-
<li>We do not store any personal data and
|
| 23 |
-
<li>All information presented is sourced from the respective business owners and is intended for informational purposes only./li>
|
| 24 |
</ul>
|
| 25 |
</p>
|
| 26 |
|
|
@@ -38,54 +39,62 @@
|
|
| 38 |
<button disabled class="tab-link" onclick="openTab(event, 'About')"><span class="tab-heading">ABOUT</span></button>
|
| 39 |
|
| 40 |
</div>
|
| 41 |
-
|
| 42 |
<div id="Plnb" class="tab-content">
|
| 43 |
-
<h4>Project LeanNation </h4>
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
</table>
|
| 67 |
</div>
|
| 68 |
|
| 69 |
<div id="Hcs" class="tab-content">
|
| 70 |
-
<h4>
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</tr>
|
| 84 |
</table>
|
| 85 |
<br>
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
|
| 88 |
-
</p>
|
| 89 |
</div>
|
| 90 |
|
| 91 |
<div id="Sports" class="tab-content">
|
|
@@ -98,7 +107,7 @@
|
|
| 98 |
<p>Learn more about our project and mission.</p>
|
| 99 |
<p>
|
| 100 |
Design<br><br>
|
| 101 |
-
[Client (Web/Mobile)] <-->
|
| 102 |
<ol>
|
| 103 |
<li>We have built the software stack powered by various language models, content RAG using llamaindex</li>
|
| 104 |
|
|
@@ -107,14 +116,14 @@
|
|
| 107 |
</div>
|
| 108 |
|
| 109 |
<div class="ai-assistant-container" id="aiAssistant">
|
| 110 |
-
<img src="bP.png" alt="AI Assistant Avatar" class="assistant-avatar" id="net-ai">
|
| 111 |
|
| 112 |
<!-- Chat Bubble (Text Area) -->
|
| 113 |
<div class="chat-bubble" id="net">
|
| 114 |
<p>Hello! RR Technologies assistant here, how may I help you?
|
| 115 |
<ol>
|
| 116 |
<li>Please click the icon to collapse this window</li>
|
| 117 |
-
<li>Please type your question and
|
| 118 |
<li>Please dblclick to clear the contents!</li>
|
| 119 |
</ol>
|
| 120 |
</p>
|
|
@@ -149,14 +158,17 @@
|
|
| 149 |
|
| 150 |
|
| 151 |
<script type="module">
|
| 152 |
-
|
| 153 |
import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
|
| 154 |
async function callGradioAPI(userInput) {
|
|
|
|
| 155 |
const app = await Client.connect('https://rr19tech-my-proxy.hf.space');
|
|
|
|
| 156 |
const result = await app.predict("/call_private_api", [userInput]);
|
|
|
|
|
|
|
| 157 |
return result.data;
|
| 158 |
}
|
| 159 |
-
|
| 160 |
const consoleArea = document.getElementById('console');
|
| 161 |
const assistantAvatar = document.getElementById('net-ai');
|
| 162 |
const chatBubble = document.getElementById('net');
|
|
@@ -175,28 +187,25 @@
|
|
| 175 |
}
|
| 176 |
console.log("Is the button clicked!! net-ai");
|
| 177 |
//we have to call the language model from this chat
|
|
|
|
|
|
|
| 178 |
});
|
| 179 |
|
| 180 |
function get_api_results(result){
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
consoleArea.value = data;
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
// Add a keydown event listener to the chat console area of the chat bublle
|
| 196 |
consoleArea.addEventListener('keydown', function(event) {
|
| 197 |
-
//clear the existing text
|
| 198 |
|
| 199 |
-
// Check if the key pressed is the 'Enter' key
|
| 200 |
if (event.key === 'Enter') {
|
| 201 |
//not sure if we need below to prevent the default behaviour
|
| 202 |
event.preventDefault();
|
|
@@ -215,11 +224,10 @@
|
|
| 215 |
console.log("am i double clicked!!");
|
| 216 |
consoleArea.value = ""; //clearning for next question
|
| 217 |
});
|
| 218 |
-
|
| 219 |
-
|
| 220 |
</script>
|
|
|
|
| 221 |
|
| 222 |
-
</body>
|
| 223 |
</html>
|
| 224 |
|
| 225 |
|
|
|
|
| 1 |
<html>
|
| 2 |
<head>
|
| 3 |
+
<link rel="stylesheet" href="style.css">
|
|
|
|
| 4 |
</head>
|
| 5 |
+
|
| 6 |
<body>
|
| 7 |
<div class="main-company" id="rrMain">
|
| 8 |
+
<h3 class="main-heading">RR Technologies - Retro Poster Board</h3>
|
| 9 |
<p class="details">
|
| 10 |
<ul>
|
| 11 |
<li>This site is designed as a platform for fostering innovative ideas and conducting comprehensive market research and feasibility analyses.</li>
|
| 12 |
<li>It operates as a dynamic poster board environment, enabling businesses to showcase their products and offer targeted promotions.</li>
|
| 13 |
+
<li>This site design and overall aesthetic are regularly reviewed and updated to ensure an engaging user experience.</li>
|
| 14 |
<li>The platform provides a space for businesses to publicly advertise their offerings and disseminate promotional campaigns.</li>
|
| 15 |
<li>All content pertaining to businesses is sourced directly from their owners and published with the understanding that it represents their official brand messaging.</li>
|
| 16 |
</ul>
|
| 17 |
</p>
|
| 18 |
<p>
|
| 19 |
<span class="disclaimer">Disclaimer:</span>
|
| 20 |
+
<ul>
|
| 21 |
+
|
| 22 |
<li>We are dedicated to protecting user privacy and ensuring a secure environment.</li>
|
| 23 |
+
<li>We do not store any personal data and do not facilitate any commercial transactions on the platform.</li>
|
| 24 |
+
<li>All information presented is sourced from the respective business owners and is intended for informational purposes only.</li>
|
| 25 |
</ul>
|
| 26 |
</p>
|
| 27 |
|
|
|
|
| 39 |
<button disabled class="tab-link" onclick="openTab(event, 'About')"><span class="tab-heading">ABOUT</span></button>
|
| 40 |
|
| 41 |
</div>
|
| 42 |
+
|
| 43 |
<div id="Plnb" class="tab-content">
|
| 44 |
+
<h4>Project LeanNation </h4>
|
| 45 |
+
<table >
|
| 46 |
+
<tr>
|
| 47 |
+
<td>
|
| 48 |
+
<p>
|
| 49 |
+
We are incredibly excited to announce the launch of a new store <a href="https://projectleannation.com/locations/burlington-ma" alt="Project LeanNation" target="_blank" rel="noopener noreferrer">Project Lean Nation</a> in Burlington mid-June.<br>
|
| 50 |
+
We would like to introduce the owner, Shweta, a former Google engineer who has transitioned her passion for nutrition and building healthier habits into a community-focused endeavor.<br>
|
| 51 |
+
Shweta is currently looking to connect with the community and would love to partner
|
| 52 |
+
with local groups, corporate teams, fitness studios, sports clubs and other organizations to host pop-ups. <br>
|
| 53 |
+
<br>
|
| 54 |
+
They offer macro-balanced meals and nutrition coaching designed to make healthy eating simple,
|
| 55 |
+
convenient, and sustainable for busy professionals.<br>
|
| 56 |
+
These are great ways to sample meals, try protein snacks, and learn more about the nutrition program in a fun, low-pressure setting.<br>
|
| 57 |
+
We would love to connect you with Shweta and explore potential wellness initiatives for your teams!<br>
|
| 58 |
+
Please use the link to avial the introductary founding member discounts, <a href="https://pln.fit/e/M-ARUN" alt="Singup link" target="_blank" rel="noopener noreferrer">Signup</a>
|
| 59 |
+
<br> If you're open to it, we would be happy to make an introduction.
|
| 60 |
+
</p>
|
| 61 |
+
</td>
|
| 62 |
+
<td>
|
| 63 |
+
<img src="images/QR_PLNB.png" height="150" width="150" style="background-position: top right;"></img>
|
| 64 |
+
</td>
|
| 65 |
+
</tr>
|
| 66 |
+
</table>
|
|
|
|
| 67 |
</div>
|
| 68 |
|
| 69 |
<div id="Hcs" class="tab-content">
|
| 70 |
+
<h4>Harshali Custom Cake Shop</h4>
|
| 71 |
+
<table >
|
| 72 |
+
<tr>
|
| 73 |
+
<td vertical-align="top">
|
| 74 |
+
|
| 75 |
+
We are happy to introduce a speciality cake shop by Harshali in Boston Neighborhood.<br>
|
| 76 |
+
Harshali creates affordable and handmade theme based cake design's that suit your needs. <br>
|
| 77 |
+
Please check out her <a class="anchor-tags" href="https://www.facebook.com/harshaliscreativecakes/" alt="Harshali Cake Shop" target="_blank" rel="noopener noreferrer">Facebook</a> link to discuss customizations based on your preferences!
|
| 78 |
+
|
| 79 |
+
</td>
|
| 80 |
+
<td><span style="visibility: hidden;">space filler for now!</span></td>
|
| 81 |
+
<td >
|
| 82 |
+
<table >
|
| 83 |
+
<tr>
|
| 84 |
+
<td><img src="images/20230407_140300.jpg" height="100" width="80"/></td>
|
| 85 |
+
<td><img src="images/20240501_175250.jpg" height="100" width="80"/></td>
|
| 86 |
+
<td><img src="images/20250407_183652.jpg" height="100" width="80"/></td>
|
| 87 |
+
<td><img src="images/20250510_145255.jpg" height="100" width="80"/></td>
|
| 88 |
+
</tr>
|
| 89 |
+
</table>
|
| 90 |
+
</td>
|
| 91 |
</tr>
|
| 92 |
</table>
|
| 93 |
<br>
|
| 94 |
+
<p>
|
| 95 |
+
If you like to hear more, we would be happy to make an introduction.
|
| 96 |
+
</p>
|
| 97 |
|
|
|
|
| 98 |
</div>
|
| 99 |
|
| 100 |
<div id="Sports" class="tab-content">
|
|
|
|
| 107 |
<p>Learn more about our project and mission.</p>
|
| 108 |
<p>
|
| 109 |
Design<br><br>
|
| 110 |
+
[Client (Web/Mobile)] <--> [API Layer (Fastapi/Python)] <--> [LLM Integration (OpenAI)] <--> [Data Layer (Optional)]
|
| 111 |
<ol>
|
| 112 |
<li>We have built the software stack powered by various language models, content RAG using llamaindex</li>
|
| 113 |
|
|
|
|
| 116 |
</div>
|
| 117 |
|
| 118 |
<div class="ai-assistant-container" id="aiAssistant">
|
| 119 |
+
<img src="images/bP.png" alt="AI Assistant Avatar" class="assistant-avatar" id="net-ai">
|
| 120 |
|
| 121 |
<!-- Chat Bubble (Text Area) -->
|
| 122 |
<div class="chat-bubble" id="net">
|
| 123 |
<p>Hello! RR Technologies assistant here, how may I help you?
|
| 124 |
<ol>
|
| 125 |
<li>Please click the icon to collapse this window</li>
|
| 126 |
+
<li>Please type your question and press enter</li>
|
| 127 |
<li>Please dblclick to clear the contents!</li>
|
| 128 |
</ol>
|
| 129 |
</p>
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
<script type="module">
|
|
|
|
| 161 |
import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
|
| 162 |
async function callGradioAPI(userInput) {
|
| 163 |
+
// 1. Connect to the app (use your Space name or URL)
|
| 164 |
const app = await Client.connect('https://rr19tech-my-proxy.hf.space');
|
| 165 |
+
// 2. Call the endpoint with user input passed as an array
|
| 166 |
const result = await app.predict("/call_private_api", [userInput]);
|
| 167 |
+
// 3. Access the returned data
|
| 168 |
+
console.log("Result:", result.data);
|
| 169 |
return result.data;
|
| 170 |
}
|
| 171 |
+
|
| 172 |
const consoleArea = document.getElementById('console');
|
| 173 |
const assistantAvatar = document.getElementById('net-ai');
|
| 174 |
const chatBubble = document.getElementById('net');
|
|
|
|
| 187 |
}
|
| 188 |
console.log("Is the button clicked!! net-ai");
|
| 189 |
//we have to call the language model from this chat
|
| 190 |
+
|
| 191 |
+
|
| 192 |
});
|
| 193 |
|
| 194 |
function get_api_results(result){
|
| 195 |
+
callGradioAPI(result)
|
| 196 |
+
.then(data => {
|
| 197 |
+
if (data) {
|
| 198 |
+
console.log('Received data:', data);
|
| 199 |
consoleArea.value = data;
|
| 200 |
+
return data;
|
| 201 |
+
}
|
| 202 |
+
else{
|
| 203 |
+
console.log("No data received");
|
| 204 |
+
}
|
| 205 |
+
});
|
| 206 |
+
}
|
|
|
|
|
|
|
|
|
|
| 207 |
consoleArea.addEventListener('keydown', function(event) {
|
|
|
|
| 208 |
|
|
|
|
| 209 |
if (event.key === 'Enter') {
|
| 210 |
//not sure if we need below to prevent the default behaviour
|
| 211 |
event.preventDefault();
|
|
|
|
| 224 |
console.log("am i double clicked!!");
|
| 225 |
consoleArea.value = ""; //clearning for next question
|
| 226 |
});
|
| 227 |
+
|
|
|
|
| 228 |
</script>
|
| 229 |
+
</body>
|
| 230 |
|
|
|
|
| 231 |
</html>
|
| 232 |
|
| 233 |
|