Spaces:
Running
Running
Commit
·
05580de
1
Parent(s):
8959aae
updated UI
Browse files- templates/index.html +26 -1
templates/index.html
CHANGED
|
@@ -61,9 +61,15 @@
|
|
| 61 |
<!-- Input Area -->
|
| 62 |
<div class="chat-input-container">
|
| 63 |
<div class="chat-input-wrapper">
|
| 64 |
-
<button class="input-btn" title="Attach file">
|
| 65 |
<i class="fas fa-plus"></i>
|
| 66 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
<input
|
| 68 |
type="text"
|
| 69 |
id="queryInput"
|
|
@@ -82,6 +88,25 @@
|
|
| 82 |
<i class="fas fa-chevron-down"></i>
|
| 83 |
</div>
|
| 84 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<script src="/static/script.js"></script>
|
|
|
|
| 61 |
<!-- Input Area -->
|
| 62 |
<div class="chat-input-container">
|
| 63 |
<div class="chat-input-wrapper">
|
| 64 |
+
<button class="input-btn" title="Attach file" id="attachFileBtn">
|
| 65 |
<i class="fas fa-plus"></i>
|
| 66 |
</button>
|
| 67 |
+
<input
|
| 68 |
+
type="file"
|
| 69 |
+
id="fileInput"
|
| 70 |
+
accept="image/*"
|
| 71 |
+
style="display: none;"
|
| 72 |
+
/>
|
| 73 |
<input
|
| 74 |
type="text"
|
| 75 |
id="queryInput"
|
|
|
|
| 88 |
<i class="fas fa-chevron-down"></i>
|
| 89 |
</div>
|
| 90 |
</div>
|
| 91 |
+
|
| 92 |
+
<!-- OCR Processing Modal -->
|
| 93 |
+
<div id="ocrModal" class="modal" style="display: none;">
|
| 94 |
+
<div class="modal-content">
|
| 95 |
+
<div class="modal-header">
|
| 96 |
+
<h3>OCR Processing</h3>
|
| 97 |
+
<span class="close" id="closeOcrModal">×</span>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="modal-body">
|
| 100 |
+
<div id="ocrPreview" class="ocr-preview"></div>
|
| 101 |
+
<div id="ocrResults" class="ocr-results"></div>
|
| 102 |
+
<div class="ocr-actions">
|
| 103 |
+
<button id="useOcrText" class="btn btn-primary">Use Extracted Text</button>
|
| 104 |
+
<button id="queryWithOcr" class="btn btn-secondary">Query with OCR</button>
|
| 105 |
+
<button id="cancelOcr" class="btn btn-danger">Cancel</button>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
</div>
|
| 111 |
|
| 112 |
<script src="/static/script.js"></script>
|