FatimaGr commited on
Commit
6ae4fec
·
verified ·
1 Parent(s): d219767
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -717,7 +717,7 @@ askBtn.addEventListener('click', async () => {
717
  <span class="drop-text" id="dropText">Drop your file here or click to browse</span>
718
  </label>
719
  <input type="file" id="graphFileInput" class="file-input"
720
- accept=".xls,.xlsx" hidden>
721
  </div>
722
 
723
  <div class="action-container">
@@ -828,7 +828,7 @@ askBtn.addEventListener('click', async () => {
828
  formData.append("file", fileInput.files[0]);
829
  formData.append("query", graphTypeSelect.value);
830
 
831
- const response = await fetch("https://aiwebdev-smartdocai.hf.space/generate_viz/", {
832
  method: "POST",
833
  body: formData,
834
  headers: { 'Accept': 'image/*' }
 
717
  <span class="drop-text" id="dropText">Drop your file here or click to browse</span>
718
  </label>
719
  <input type="file" id="graphFileInput" class="file-input"
720
+ accept=".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx" hidden>
721
  </div>
722
 
723
  <div class="action-container">
 
828
  formData.append("file", fileInput.files[0]);
829
  formData.append("query", graphTypeSelect.value);
830
 
831
+ const response = await fetch("http://localhost:8000/generate_viz/", {
832
  method: "POST",
833
  body: formData,
834
  headers: { 'Accept': 'image/*' }