chat-excel / index.html
akhaliq's picture
akhaliq HF Staff
Upload index.html with huggingface_hub
0754b0a verified
Raw
History Blame Contribute Delete
3.17 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat with Excel - AI Assistant</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>πŸ“Š Chat with Excel</h1>
<p>Your AI-powered Excel assistant</p>
</header>
<div class="main-content">
<div class="file-upload-section">
<label for="excel-file" class="file-label">
<svg class="upload-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<span>Upload Excel File (.xlsx, .xls, .csv)</span>
</label>
<input type="file" id="excel-file" accept=".xlsx,.xls,.csv" hidden>
<div id="file-info" class="file-info hidden">
<span id="file-name"></span>
<button id="remove-file" class="remove-btn">Γ—</button>
</div>
</div>
<div class="chat-container">
<div id="chat-messages" class="chat-messages">
<div class="welcome-message">
<h2>Welcome to Chat with Excel!</h2>
<p>Upload an Excel file and ask me anything about your data:</p>
<ul>
<li>πŸ“ˆ "What's the total sum of column B?"</li>
<li>πŸ“Š "Show me the average values by category"</li>
<li>πŸ” "Find all rows where sales > 1000"</li>
<li>πŸ“‰ "What are the trends in the data?"</li>
</ul>
</div>
</div>
<div class="input-section">
<div class="input-wrapper">
<textarea
id="user-input"
placeholder="Ask me about your Excel data..."
rows="1"
disabled
></textarea>
<button id="send-btn" class="send-btn" disabled>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="22" y1="2" x2="11" y2="13"></line>
<polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
</svg>
</button>
</div>
</div>
</div>
</div>
<div id="loading-overlay" class="loading-overlay hidden">
<div class="loader"></div>
<p id="loading-text">Initializing AI model...</p>
</div>
</div>
<script type="module" src="index.js"></script>
</body>
</html>