Skip to content

Commit

Permalink
chore: enabling windows builds for the app
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Oct 12, 2024
1 parent 7015616 commit 8f03dc3
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
# args: "--target x86_64-apple-darwin"
- platform: "ubuntu-22.04"
args: ""
# - platform: 'windows-latest'
# args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
environment: PROD
Expand Down
62 changes: 62 additions & 0 deletions boost/src/custom_modules/webui_artifact.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import chat as ch
import llm

ID_PREFIX='webui_artifact'

async def apply(chat: 'ch.Chat', llm: 'llm.LLM'):
await llm.emit_message("""
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hi</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
```
""")

await llm.emit_message("""
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hi</title>
</head>
<body>
<h1>My second Heading</h1>
<p>My second paragraph.</p>
</body>
</html>
```
""")

# await llm.emit_message("""
# ```css
# body {
# background-color: lightblue;
# }

# h1 {
# color: white;
# text-align: center;
# }
# ```
# """)

# await llm.emit_message("""
# ```javascript
# document.getElementById("demo").innerHTML = "Hello JavaScript!";
# ```
# """)

await llm.stream_final_completion()

0 comments on commit 8f03dc3

Please sign in to comment.