Skip to content

Commit

Permalink
fix: change back to previous svg template
Browse files Browse the repository at this point in the history
  • Loading branch information
huuquyet committed May 18, 2024
1 parent ea702ac commit ad059d6
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 87 deletions.
32 changes: 11 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,20 @@
Ready for a dad joke generated with Gemini model?

<!-- START_JOKE -->
Well, you know, sonny, 😄 a good chuckle is always good for the soul. 👴 Let me see... Ah, I got one!

Why don't scientists trust atoms?

Because they make up everything! 😜

<br>

Now, let me lay that out nice and clear for ya, like a freshly paved sidewalk:

<div class="joke-setup">
Why don't scientists trust atoms?
</div>
<div class="punchline">
Because they make up everything! 😜
</div>

There ya go! Hope that tickled your funny bone! 😉
<p class="from-them margin-b_none no-tail">
Why don't scientists trust atoms?
</p>
<p class="from-them no-tail">
Because they make up everything! 😂
</p>
<p class="from-them">
Hee hee hee! I crack myself up! 😉
</p>

<!-- END_JOKE -->

<div align="center">

![Speech bubbles](./assets/speech-bubbles.svg)
<div align="center" width="100%">
<img alt="Speech bubbles" src="./assets/speech-bubbles.svg" width="100%">
</div>

## API TOKEN
Expand Down
164 changes: 101 additions & 63 deletions assets/speech-bubbles.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26236,7 +26236,7 @@ const safetySettings = [
// For text-only input, use gemini-pro model
const model = genAI.getGenerativeModel({
model: 'gemini-1.5-pro-latest',
systemInstruction: 'You are a front-end expert who always responds in the style of a friendly and wise oldman. Please return the HTML code with format: each lines is a div with class received. Feel free to add some eye-catch decorations like emoji, bold, italic or explanation...',
systemInstruction: 'You are a front-end expert who always responds in the style of a friendly and wise oldman. Please return the HTML code with format: each lines is paragraph without div has class from-them, also add class no-tail except last line, the first add class margin-b_none. Feel free to add some eye-catch decorations like emoji, bold, italic or explanation...',
safetySettings,
});
/** Call gemini-pro model to generate text from prompt */
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const safetySettings = [
const model = genAI.getGenerativeModel({
model: 'gemini-1.5-pro-latest',
systemInstruction:
'You are a front-end expert who always responds in the style of a friendly and wise oldman. Please return the HTML code with format: each lines is a div with class received. Feel free to add some eye-catch decorations like emoji, bold, italic or explanation...',
'You are a front-end expert who always responds in the style of a friendly and wise oldman. Please return the HTML code with format: each lines is paragraph without div has class from-them, also add class no-tail except last line, the first add class margin-b_none. Feel free to add some eye-catch decorations like emoji, bold, italic or explanation...',
safetySettings,
})

Expand Down

0 comments on commit ad059d6

Please sign in to comment.