Skip to content

Commit

Permalink
updated example repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldshetty committed Aug 7, 2023
1 parent 582a935 commit 2febaa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gpt2_roleplay.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<body>

<div class="container">
<h1>ggml.js - GPT2</h1>
<h1>ggml.js - GPT2 Roleplay</h1>

<p id="paragraph">
This project brings
Expand Down Expand Up @@ -100,7 +100,7 @@ <h2>Demo</h2>

<form onsubmit="event.preventDefault();">
<label for="textInput">Enter Python Code:</label>
<textarea id="textInput" name="textInput" rows="4" cols="50">
<textarea id="textInput" name="textInput" rows="10">
<|characters|>
Mrs. Samsa (The Metamorphosis): Female, middle-aged, ISFJ, German accent, compassionate mother struggling to cope with her son's transformation, and eventually succumbs to the family's financial and emotional burdens.

Expand Down
8 changes: 4 additions & 4 deletions starcoder.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<body>

<div class="container">
<h1>ggml.js - StarCode</h1>
<h1>ggml.js - StarCoder</h1>

<p id="paragraph">
This project brings
Expand Down Expand Up @@ -100,8 +100,8 @@ <h2>Demo</h2>

<form onsubmit="event.preventDefault();">
<label for="textInput">Enter Python Code:</label>
<textarea id="textInput" name="textInput" rows="4" cols="50">
def fibonacci(</textarea
<textarea id="textInput" name="textInput" rows="10">
def check_prime(</textarea
>
<button id="submitBtn" disabled>Loading Model...</button>
</form>
Expand Down Expand Up @@ -134,7 +134,7 @@ <h3>Result</h3>
outputElement.textContent = ""; // clead old content
app.run({
prompt: text,
max_token_len: 64,
max_token_len: 100,
top_k: 1,
});
}
Expand Down

0 comments on commit 2febaa3

Please sign in to comment.