mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: python code execution
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
title="Open WebUI"
|
||||
href="/opensearch.xml"
|
||||
/>
|
||||
|
||||
<script type="module" src="/pyscript/core.js"></script>
|
||||
<link rel="stylesheet" href="/pyscript/core.css" />
|
||||
|
||||
<script>
|
||||
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
||||
(() => {
|
||||
@@ -54,6 +58,11 @@
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<py-config> interpreter = "/pyodide/pyodide.mjs" </py-config>
|
||||
|
||||
<script type="py">
|
||||
print('pyscript:loaded')
|
||||
</script>
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user