Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support file uploading #59

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

mingxin-zheng
Copy link
Collaborator

Implement the file uploading feature of #58

Signed-off-by: Mingxin Zheng <[email protected]>
@mingxin-zheng mingxin-zheng marked this pull request as draft November 25, 2024 03:09
@mingxin-zheng
Copy link
Collaborator Author

mingxin-zheng commented Nov 26, 2024

To find the Click to upload button in this dev branch, you'll need to issue the following commands in the container

cd /VLM/m3/demo
git fetch --all
git checkout mingxinz/upload_user_data_58
python gradio_m3.py --port 7860

Example output:

root@a4u8g-0138:/VLM/m3/demo# git fetch --all
Fetching origin
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 14 (delta 8), reused 13 (delta 8), pack-reused 0 (from 0)
Unpacking objects: 100% (14/14), 2.81 KiB | 261.00 KiB/s, done.
From https://github.com/Project-MONAI/VLM
   948041d..7be688a  main                         -> origin/main
 * [new branch]      mingxinz/upload_user_data_58 -> origin/mingxinz/upload_user_data_58
root@a4u8g-0138:/VLM/m3/demo# git checkout mingxinz/upload_user_data_58
M       thirdparty/VILA
Branch 'mingxinz/upload_user_data_58' set up to track remote branch 'mingxinz/upload_user_data_58' from 'origin'.
Switched to a new branch 'mingxinz/upload_user_data_58'
root@a4u8g-0138:/VLM/m3/demo# python gradio_m3.py --port 7860                                                                                                                                                                                                  
[2024-11-26 03:57:41,970] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cuda (auto detect)
100%|
<<<removed tqdm progress bars>>>
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
2024-11-26 04:01:27,211 - __main__ - INFO - Model df60e0276e2ae10624c86dabe909847a03b2a5cb loaded successfully. Context length: 2048
* Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

image

Signed-off-by: Mingxin Zheng <[email protected]>
@mingxin-zheng
Copy link
Collaborator Author

Fixes a bug and now the image uploaded will stay in a browser session

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant