-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Multi-Image Support with phi-3.5 in chat app demo (#1036)
Changes: - Switch to Gradio File object from Image object to support multiple images - Auto-populate image tags based on user input to avoid image tag mismatch: https://github.com/microsoft/onnxruntime-genai/blob/main/src/models/prompt_image_processor.cpp#L47 - Increase maximum tokens Validation: - [x] Tested demo with UI locally - [x] Ran python unit test for multi-image support in GenAI here: https://github.com/microsoft/onnxruntime-genai/pull/796/files#diff-3d2f537fb637f846715772cb3ac1a9b32e1289bdcc3be8e36c868c55cc016e9dR284 within chat app Sample: ![image](https://github.com/user-attachments/assets/f37472cb-a0aa-4a7e-b820-e5f344abf9c9) --------- Co-authored-by: Sayan Shaw <[email protected]>
- Loading branch information
1 parent
4bf84d8
commit 8965fed
Showing
2 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters