Spaces:
Runtime error
Runtime error
fixed filename error
Browse files
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)
|