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

Phi-3 Vision Android App #456

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prompt template fix
fionabos committed Jul 18, 2024
commit 70ace2d1701499b58b9e67028dc3e4d970bd2cf5
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ public void onClick(View v) {
}

String promptQuestion = userMsgEdt.getText().toString();
String promptQuestion_formatted = "<|user|>\n" + promptQuestion + "<|end|>\n<|assistant|>";
String promptQuestion_formatted = "<system>You are a helpful AI assistant. Answer in one paragraph or less<|end|><|user|>"+promptQuestion+"<|end|>\n<assistant|>";
Log.i("GenAI: prompt question", promptQuestion_formatted);
setVisibility();

@@ -128,7 +128,7 @@ public void run() {
tokenListener.accept(stream.decode(token));
}

generator.close();
//generator.close();
}
catch (GenAIException e) {
throw new RuntimeException(e);

Unchanged files with check annotations Beta

name: Windows_CI

Check failure on line 1 in .github/workflows/windows.yml

GitHub Actions / Build failed

.github/workflows/windows.yml#L1

This run timed out after more than 35 days.
on:
push:
branches: