studycode129 commited on
Commit
878b50f
·
verified ·
1 Parent(s): b971940

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +6 -6
index.html CHANGED
@@ -20,18 +20,18 @@
20
  <label for="prompt">Your Prompt:</label>
21
  <textarea id="prompt" placeholder="Type your test prompt here..."></textarea>
22
 
23
- <label for="fileUpload">Or upload a file with prompts (one per line):</label>
24
  <label class="custom-file-upload">
25
  <input type="file" id="fileUpload" accept=".txt,.csv">Choose File
26
- <!-- After your file input -->
27
- <div id="file-info" class="text-gray-600 text-sm mt-2"></div>
28
  </label>
29
  <button onclick="send()">Send Prompt</button>
30
 
31
  <h3 style="margin-top: 24px; color: #6b21a8;">Response:</h3>
32
- <div id="loading" class="hidden">Running prompts... 👇</div>
33
- <pre id="response" class="hidden"></pre>
34
-
35
  <div class="download">
36
  <button onclick="downloadCSV()">Download Results as CSV</button>
37
  </div>
 
20
  <label for="prompt">Your Prompt:</label>
21
  <textarea id="prompt" placeholder="Type your test prompt here..."></textarea>
22
 
23
+ <label for="fileUpload">Or upload a csv file with prompts</label>
24
  <label class="custom-file-upload">
25
  <input type="file" id="fileUpload" accept=".txt,.csv">Choose File
26
+ <!-- File name preview -->
27
+ <p id="fileName" class="file-name"></p>
28
  </label>
29
  <button onclick="send()">Send Prompt</button>
30
 
31
  <h3 style="margin-top: 24px; color: #6b21a8;">Response:</h3>
32
+ <!-- Loading animation -->
33
+ <div id="loading" class="loading" style="display: none;">⏳ Processing prompts... Please wait.</div>
34
+
35
  <div class="download">
36
  <button onclick="downloadCSV()">Download Results as CSV</button>
37
  </div>