From ee2a0f3a534eae29464162ead3968c9eec6ca89e Mon Sep 17 00:00:00 2001 From: Chirag Modi <98582575+cmodi-meta@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:48:48 -0700 Subject: [PATCH] Update README.md Removed [!TIP] format and replaced with a subheader --- examples/demo-apps/android/LlamaDemo/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/demo-apps/android/LlamaDemo/README.md b/examples/demo-apps/android/LlamaDemo/README.md index 41b030cef06..c85f69a0798 100644 --- a/examples/demo-apps/android/LlamaDemo/README.md +++ b/examples/demo-apps/android/LlamaDemo/README.md @@ -65,8 +65,7 @@ Optional Parameters: * System Prompt: Without any formatting, you can enter in a system prompt. For example, "you are a travel assistant" or "give me a response in a few sentences". * User Prompt: More for the advanced user, if you would like to manually input a prompt then you can do so by modifying the `{{user prompt}}`. You can also modify the special tokens as well. Once changed then go back to the main Chat activity to send. -> [!TIP] -> Helpful ExecuTorch API in app +#### ExecuTorch App API ```java // Upon returning to the Main Chat Activity @@ -95,8 +94,8 @@ You can provide it more follow-up questions as well.

-> [!TIP] -> Helpful ExecuTorch API in app +#### ExecuTorch App API + ```java mModule.generate(prompt,sequence_length, MainActivity.this); ``` @@ -119,8 +118,7 @@ To show completion of the follow-up question, here is the complete detailed resp

-> [!TIP] -> Helpful ExecuTorch API in app +#### ExecuTorch App API Ensure you have the following functions in your callback class that you provided in the `mModule.generate()`. For this example, it is `MainActivity.this`. ```java