Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +82 -82
static/index.html
CHANGED
|
@@ -1,83 +1,83 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Maize Crop RAG System</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css">
|
| 8 |
-
</head>
|
| 9 |
-
<body>
|
| 10 |
-
<div class="container">
|
| 11 |
-
<header>
|
| 12 |
-
<h1>π½ Maize Crop Intelligence System</h1>
|
| 13 |
-
<p>AI-powered Q&A for Maize Agriculture</p>
|
| 14 |
-
</header>
|
| 15 |
-
|
| 16 |
-
<div class="status-bar" id="statusBar">
|
| 17 |
-
<span class="status-indicator" id="statusIndicator"></span>
|
| 18 |
-
<span id="statusText">Checking system status...</span>
|
| 19 |
-
<button id="statsBtn" class="stats-btn">π Token Stats</button>
|
| 20 |
-
</div>
|
| 21 |
-
|
| 22 |
-
<div class="init-section" id="initSection" style="display: none;">
|
| 23 |
-
<h3>Initialize System</h3>
|
| 24 |
-
<input type="password" id="apiKeyInput" placeholder="Enter Google API Key">
|
| 25 |
-
<button id="initBtn">Initialize</button>
|
| 26 |
-
</div>
|
| 27 |
-
|
| 28 |
-
<div class="main-content" id="mainContent" style="display: none;">
|
| 29 |
-
<div class="query-section">
|
| 30 |
-
<h3>Ask About Maize</h3>
|
| 31 |
-
<div class="input-group">
|
| 32 |
-
<textarea id="queryInput" placeholder="Ask your question about maize cultivation, pests, irrigation, soil, etc." rows="3"></textarea>
|
| 33 |
-
<button id="submitBtn">Ask Question</button>
|
| 34 |
-
</div>
|
| 35 |
-
|
| 36 |
-
<div class="sample-queries">
|
| 37 |
-
<p>Sample questions:</p>
|
| 38 |
-
<button class="sample-btn" data-query="What are the main pests affecting maize crops?">Pests</button>
|
| 39 |
-
<button class="sample-btn" data-query="How should maize be irrigated?">Irrigation</button>
|
| 40 |
-
<button class="sample-btn" data-query="What is the ideal soil type for maize?">Soil</button>
|
| 41 |
-
<button class="sample-btn" data-query="What is the typical yield per acre?">Yield</button>
|
| 42 |
-
</div>
|
| 43 |
-
</div>
|
| 44 |
-
|
| 45 |
-
<div class="results-section" id="resultsSection" style="display: none;">
|
| 46 |
-
<h3>Answer</h3>
|
| 47 |
-
<div id="answerContent" class="answer-content"></div>
|
| 48 |
-
|
| 49 |
-
<div class="metadata">
|
| 50 |
-
<div id="tokenInfo" class="token-info"></div>
|
| 51 |
-
<div id="timeInfo" class="time-info"></div>
|
| 52 |
-
</div>
|
| 53 |
-
|
| 54 |
-
<div id="sourcesSection" class="sources-section" style="display: none;">
|
| 55 |
-
<h4>Sources</h4>
|
| 56 |
-
<div id="sourcesList"></div>
|
| 57 |
-
</div>
|
| 58 |
-
</div>
|
| 59 |
-
|
| 60 |
-
<div class="upload-section">
|
| 61 |
-
<h3>Upload New Document</h3>
|
| 62 |
-
<input type="file" id="fileInput" accept=".txt">
|
| 63 |
-
<button id="uploadBtn">Upload & Reinitialize</button>
|
| 64 |
-
</div>
|
| 65 |
-
</div>
|
| 66 |
-
|
| 67 |
-
<div class="loading" id="loading" style="display: none;">
|
| 68 |
-
<div class="spinner"></div>
|
| 69 |
-
<p>Processing your query...</p>
|
| 70 |
-
</div>
|
| 71 |
-
|
| 72 |
-
<div class="stats-modal" id="statsModal" style="display: none;">
|
| 73 |
-
<div class="modal-content">
|
| 74 |
-
<span class="close">×</span>
|
| 75 |
-
<h3>Token Usage Statistics</h3>
|
| 76 |
-
<div id="statsContent"></div>
|
| 77 |
-
</div>
|
| 78 |
-
</div>
|
| 79 |
-
</div>
|
| 80 |
-
|
| 81 |
-
<script src="script.js"></script>
|
| 82 |
-
</body>
|
| 83 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Maize Crop RAG System</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<header>
|
| 12 |
+
<h1>π½ Maize Crop Intelligence System</h1>
|
| 13 |
+
<p>AI-powered Q&A for Maize Agriculture</p>
|
| 14 |
+
</header>
|
| 15 |
+
|
| 16 |
+
<div class="status-bar" id="statusBar">
|
| 17 |
+
<span class="status-indicator" id="statusIndicator"></span>
|
| 18 |
+
<span id="statusText">Checking system status...</span>
|
| 19 |
+
<button id="statsBtn" class="stats-btn">π Token Stats</button>
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
<div class="init-section" id="initSection" style="display: none;">
|
| 23 |
+
<h3>Initialize System</h3>
|
| 24 |
+
<input type="password" id="apiKeyInput" placeholder="Enter Google API Key">
|
| 25 |
+
<button id="initBtn">Initialize</button>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div class="main-content" id="mainContent" style="display: none;">
|
| 29 |
+
<div class="query-section">
|
| 30 |
+
<h3>Ask About Maize</h3>
|
| 31 |
+
<div class="input-group">
|
| 32 |
+
<textarea id="queryInput" placeholder="Ask your question about maize cultivation, pests, irrigation, soil, etc." rows="3"></textarea>
|
| 33 |
+
<button id="submitBtn">Ask Question</button>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<div class="sample-queries">
|
| 37 |
+
<p>Sample questions:</p>
|
| 38 |
+
<button class="sample-btn" data-query="What are the main pests affecting maize crops?">Pests</button>
|
| 39 |
+
<button class="sample-btn" data-query="How should maize be irrigated?">Irrigation</button>
|
| 40 |
+
<button class="sample-btn" data-query="What is the ideal soil type for maize?">Soil</button>
|
| 41 |
+
<button class="sample-btn" data-query="What is the typical yield per acre?">Yield</button>
|
| 42 |
+
</div>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<div class="results-section" id="resultsSection" style="display: none;">
|
| 46 |
+
<h3>Answer</h3>
|
| 47 |
+
<div id="answerContent" class="answer-content"></div>
|
| 48 |
+
|
| 49 |
+
<div class="metadata">
|
| 50 |
+
<div id="tokenInfo" class="token-info"></div>
|
| 51 |
+
<div id="timeInfo" class="time-info"></div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div id="sourcesSection" class="sources-section" style="display: none;">
|
| 55 |
+
<h4>Sources</h4>
|
| 56 |
+
<div id="sourcesList"></div>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<div class="upload-section">
|
| 61 |
+
<h3>Upload New Document</h3>
|
| 62 |
+
<input type="file" id="fileInput" accept=".txt">
|
| 63 |
+
<button id="uploadBtn">Upload & Reinitialize</button>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<div class="loading" id="loading" style="display: none;">
|
| 68 |
+
<div class="spinner"></div>
|
| 69 |
+
<p>Processing your query...</p>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div class="stats-modal" id="statsModal" style="display: none;">
|
| 73 |
+
<div class="modal-content">
|
| 74 |
+
<span class="close">×</span>
|
| 75 |
+
<h3>Token Usage Statistics</h3>
|
| 76 |
+
<div id="statsContent"></div>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<script src="/static/script.js"></script>
|
| 82 |
+
</body>
|
| 83 |
</html>
|