Skip to content

Commit

Permalink
Make music generally work, log to wandb when API Key set, updated fro…
Browse files Browse the repository at this point in the history
…ntend
  • Loading branch information
vanpelt committed Apr 4, 2024
1 parent a72cfe2 commit 897ce88
Show file tree
Hide file tree
Showing 12 changed files with 280 additions and 3 deletions.
3 changes: 3 additions & 0 deletions backend/openui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def is_running_in_docker():
except Exception as e:
pass

if config.ENV == config.Env.PROD:
return True

return False

if __name__ == "__main__":
Expand Down
Binary file added backend/openui/assets/funky.mp3
Binary file not shown.
42 changes: 42 additions & 0 deletions backend/openui/dist/assets/Builder-_K7NpAbf.js

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions backend/openui/dist/assets/CodeEditor-DcTnP_Kb.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions backend/openui/dist/assets/SyntaxHighlighter-DYyKjSRe.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions backend/openui/dist/assets/index-Bgny8Rj7.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions backend/openui/dist/assets/index-CBd10IOu.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions backend/openui/dist/assets/index-HAK-6NWz.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 114 additions & 0 deletions backend/openui/dist/assets/textarea-UhR9goSY.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/openui/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/>
<meta name="theme-color" content="rgb(217,87,155)" />
<title>OpenUI by W&B</title>
<script type="module" crossorigin src="/assets/index-Dg5jToZT.js"></script>
<script type="module" crossorigin src="/assets/index-HAK-6NWz.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-BGjp6CLF.js">
<link rel="stylesheet" crossorigin href="/assets/index-DrMS6Spr.css">
</head>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export default function Settings({ trigger }: { trigger: JSX.Element }) {
<SelectLabel>Ollama</SelectLabel>
) : undefined}
{!!isPending && (
<SelectItem disabled value=''>
<SelectItem disabled value='loading'>
Loading...
</SelectItem>
)}
{!!isError && (
<SelectItem disabled value=''>
<SelectItem disabled value='error'>
Unable to load Ollama models, see console
</SelectItem>
)}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/AI/Builder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function fixHTML(html: string) {
/* replace any gray styles with zinc, fix placeholder images */
let fixed = html.replaceAll('-gray-', '-zinc-')
fixed = fixed.replaceAll('via.placeholder.com', 'placehold.co')
fixed = fixed.replaceAll(/"[^"]*\.(mp3|wav)"|'[^']*\.(mp3|wav)'/g, "\""+document.location.origin + "/openui/funky.mp3" + "\"")
return fixed
}

Expand Down

0 comments on commit 897ce88

Please sign in to comment.