WoodLB commited on
Commit
982ab38
1 Parent(s): e0036ed

fixed filename error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -207,7 +207,7 @@ def train_and_inference(api_key, ontology_id, model_run_id):
207
  filename = os.path.basename(image_url)
208
  # st.write(filename)
209
 
210
- download_and_save_image(image_url, destination_folder, filename)
211
 
212
  """#Train Model"""
213
  # st.write(labeldict)
 
207
  filename = os.path.basename(image_url)
208
  # st.write(filename)
209
 
210
+ download_and_save_image(image_url, destination_folder, filename.split('?')[0])
211
 
212
  """#Train Model"""
213
  # st.write(labeldict)