Kimang18 commited on
Commit
12ab1c7
·
1 Parent(s): b1581a6

update folder

Browse files
Files changed (3) hide show
  1. app.py +1 -0
  2. templates/index.html +0 -4
  3. templates/tagger.html +1 -1
app.py CHANGED
@@ -114,6 +114,7 @@ def label(id):
114
  def images(f):
115
  user_id = session.get('_id')
116
  images = app.config["IMAGES"] + f'/{user_id}'
 
117
  return send_file(images +'/'+f)
118
 
119
  @app.route('/download')
 
114
  def images(f):
115
  user_id = session.get('_id')
116
  images = app.config["IMAGES"] + f'/{user_id}'
117
+ print(images, '/', f)
118
  return send_file(images +'/'+f)
119
 
120
  @app.route('/download')
templates/index.html CHANGED
@@ -52,9 +52,5 @@
52
  <footer class="mt-8 mb-4 text-center text-gray-500 text-sm w-full max-w-4xl">
53
  Thanks Huggingface 🤗
54
  </footer>
55
- <script>
56
- var folder = document.getElementById("folder");
57
- console.log(folder.value)
58
- </script>
59
  </body>
60
  </html>
 
52
  <footer class="mt-8 mb-4 text-center text-gray-500 text-sm w-full max-w-4xl">
53
  Thanks Huggingface 🤗
54
  </footer>
 
 
 
 
55
  </body>
56
  </html>
templates/tagger.html CHANGED
@@ -146,7 +146,7 @@
146
  }
147
  };
148
  image.style.display="block";
149
- image.src = "images/{{ image }}";
150
 
151
  // this flage is true when the user is dragging the mouse
152
  var isDown=false;
 
146
  }
147
  };
148
  image.style.display="block";
149
+ image.src = "image/{{ image }}";
150
 
151
  // this flage is true when the user is dragging the mouse
152
  var isDown=false;