Spaces:
Build error
Build error
Commit History
-
Update app.py
Verified signaturefb2c0c4 -
Update app.py
Verified signatureef924e1 -
Update app.py
Verified signaturehi13eef3f -
Update app.py
Verified signature2a6e97e -
Update requirements.txt
Verified signature7b69b78 -
Update app.py
Verified signature8e142ab -
Update app.py
Verified signature09f8048 -
Delete labeled_data.json
Verified signaturedf0f588 -
Update app.py
Verified signature7e890c5 -
Update app.py
Verified signature5ec1d6a -
Update app.py
Verified signature7d5835f -
Create labeled_data.json
Verified signaturebdd3e91 -
Update app.py
Verified signature80acacc -
Update app.py
Verified signature0620a58 -
Update app.py
Verified signaturee498afe -
one must imagine sisyphus happy
Verified signature99a41a1 -
No more update descriptions until I have a working version
Verified signature30231d8 -
Update app.py
Verified signatureCorrectly display images in the gr.Gallery component. Create a shareable public link that you can use to access the app.4448221 -
Update requirements.txt
Verified signatureadd pyrojad54cfa -
Create utils.py
Verified signature6ee20cf -
Update app.py
Verified signature# Key Changes and Explanations: ## get_images(): This function now takes a batch_size argument and fetches multiple images and their metadata, similar to the Dataset Viewer. It uses the get_next_sample() function to get images one by one until the batch size is reached or the dataset is exhausted. ## save_labeled_data(): This function is updated to work similarly to get_images(), but it processes only one image at a time. It gets the next sample using get_next_sample(), saves the labeled data, and then updates the UI with the new image and metadata. ## labeling_ui(): Uses gr.Gallery to display images, aligning with the Dataset Viewer's approach. Uses gr.DataFrame for metadata, which is better suited for structured data. The initialize_labeling_ui() function is similar to before but uses the new get_images() to fetch the first image and its metadata. Button click events are updated to work with the new image retrieval logic. ## display_ui(): Remains mostly the same, as it was al…c501c19 -
Update app.py
Verified signature# Key Changes: ## Image Handling: The get_next_sample() function now correctly returns a PIL Image object for the image and the raw metadata as extracted from the sample. The save_labeled_data function takes care of converting the image to bytes (if not None) and stores it along with the metadata. ## Metadata Handling: Instead of trying to directly assign the metadata to the metadata_text textbox, which might have caused serialization issues if the metadata was not a simple string, we now only pass the "bounds" part of the metadata. This is converted to a JSON string using json.dumps(). This ensures that the textbox always receives a string. ## Initialization of UI Components: The initialization functions for both labeling_ui and display_ui now properly return the initial values, which are then used to set the .value attribute of the components directly. ## Error Handling for Dataset Exhaustion: Added a print statement in get_next_sample() and get_new_unlabeled_image() to indi…7c425bb -
Fix display_ui function
Verified signature# Key Changes: ## Removed .update(): The line new_image_component.update(value=image) has been removed. ## Initialize Component Values: Created a new function initialize_display_ui() to set the initial values of the components. This function returns the initial image, and gallery arrays. We call initialize_display_ui() and set the values of the components directly using new_image_component.value = initial_image and cool_images_gallery.value = initial_gallery. With this correction, your display_ui() function should work as intended. The error AttributeError: 'Image' object has no attribute 'update' should be resolved.4561290 -
Fix labeling_ui and save_labeled_data functions
Verified signature# Key Changes: ## labeling_ui(): Removed the lines that were trying to use .update() on the components. Created a new function initialize_labeling_ui() to set the initial values of the components. This function returns the initial image, metadata, and label count. We call initialize_labeling_ui() and set the values of the components directly using image_component.value, metadata_text.value, and label_count_text.value. ## save_labeled_data(): The function now returns the new image, metadata, and count values. Gradio will automatically update the image_component, metadata_text, and label_count_text components with these returned values.d56788b -
Update app.py
Verified signature# Key Changes and Explanations: ## Image Handling in save_labeled_data(): The save_labeled_data function now correctly converts the PIL Image object to bytes using image.convert("RGB").tobytes() before storing it in the labeled_data list. The image might be None, so we account for that possibility. ## Event Handling (Clicking Buttons): In labeling_ui(), the cool_button.click() and not_cool_button.click() are now correctly set up. The fn argument is set to a lambda function that calls save_labeled_data with the appropriate arguments. The inputs argument specifies the components that will provide input values to the function. The outputs argument specifies the components that will be updated by the function's return values. ## Initializing the UI: In labeling_ui(), after getting the first sample with get_next_sample(), we now use: image_component.update(value=image) metadata_text.update(value=str(metadata["bounds"])) label_count_text.update(value=f"Labeled {count} samples.") …7a6ee1c -
Update app.py
Verified signatureFix display error that prevented startup ===== Application Startup at 2024-12-23 17:29:12 ===== Traceback (most recent call last): File "/home/user/app/app.py", line 143, in <module> display_ui() File "/home/user/app/app.py", line 122, in display_ui cool_images_gallery.style(grid=DISPLAY_N_COOL) AttributeError: 'Gallery' object has no attribute 'style'. Did you mean: 'scale'?55cd857 -
Update README.md
Verified signature426a55c -
Update app.py
Verified signature63711ea -
Update requirements.txt
Verified signature00944ff -
Update app.py
Verified signatured3015aa -
Create requirements.txt
Verified signatureb677a89 -
Update app.py
Verified signatureJust messing with this until I get a working demo4f33c08 -
Create earthview.py
Verified signatureCopy of https://huggingface.co/spaces/satellogic/EarthView-Viewer/blob/main/earthview.pyd82e8e5 -
Create app.py test version (small scale example)
Verified signature465c443 -
initial commit
Verified signature1e627ff