Spaces:
Running on Zero
Running on Zero
Asmit Nayak commited on
Commit ·
cc71657
1
Parent(s): b49a99a
Enable dataset updates by uncommenting relevant functions
Browse files1124 unmodified lines1125112611271128112911301131113287 unmodified lines1220122112221223122412251124 unmodified linesprint(f"[CONSOLE] Warning: Image path not found or invalid: {dataset_image_path}")image_df = pd.DataFrame([{"id": save_url, "image": None, "annotated_image": None}])# dataset_upload.update_dataset_with_new_splits(save_dict)# dataset_upload.update_dataset_with_new_images(image_df, scheduler=scheduler, dataset_dir=dataset_dir, jsonl_path=jsonl_path)# Prepare CSV for downloadcsv_file_path = save_results_to_csv(final_result, url)87 unmodified linesprint(f"[CONSOLE] Failed to decrypt system prompts, exiting...")exit(1)print(f"[CONSOLE] ===== STARTING GRADIO APPLICATION =====")print(f"[CONSOLE] Creating Gradio interface...")demo = create_interface()1124 unmodified lines1125112611271128112911301131113287 unmodified lines122012211222122312241225122612271124 unmodified linesprint(f"[CONSOLE] Warning: Image path not found or invalid: {dataset_image_path}")image_df = pd.DataFrame([{"id": save_url, "image": None, "annotated_image": None}])dataset_upload.update_dataset_with_new_splits(save_dict)dataset_upload.update_dataset_with_new_images(image_df, scheduler=scheduler, dataset_dir=dataset_dir, jsonl_path=jsonl_path)# Prepare CSV for downloadcsv_file_path = save_results_to_csv(final_result, url)87 unmodified linesprint(f"[CONSOLE] Failed to decrypt system prompts, exiting...")exit(1)# Set debug mode, when debug mode is on then we specify a specific split to get the table from andprint(f"[CONSOLE] ===== STARTING GRADIO APPLICATION =====")print(f"[CONSOLE] Creating Gradio interface...")demo = create_interface()
app.py+4-2