diff --git a/index.html b/index.html
index 0c4b9f5..d07a32b 100644
--- a/index.html
+++ b/index.html
@@ -16,6 +16,14 @@
+
diff --git a/src/entry.ts b/src/entry.ts
index 3a2e4ce..8597161 100644
--- a/src/entry.ts
+++ b/src/entry.ts
@@ -16,7 +16,7 @@ const ALLOWED_ORIGINS = (import.meta.env.VITE_ALLOWED_FRAME_ANCESTORS ?? '').spl
entrypoint: 'trigger.py',
files: {
'trigger.py': 'import run; await run.run()',
- 'app.py': '',
+ 'app.py': 'async def main():\n pass',
'config.json': '{}',
'run.py': runPy,
},
diff --git a/src/python/run.py b/src/python/run.py
index e520b53..48498bb 100644
--- a/src/python/run.py
+++ b/src/python/run.py
@@ -1,6 +1,5 @@
import ast
import asyncio
-import runpy
import functools
import importlib
import inspect
@@ -169,7 +168,6 @@ def error_fragment(error_text):
@st.fragment
def llm_function_rate_limit_exceeded_error_fragment():
st.error("You have exceeded the limit for using LLM functions.")
- js.postMessage(json.dumps({"type": "bee:reportRateLimitExceededError"}))
def identify_modules(source_code: str) -> set[str]:
diff --git a/src/styles/style.scss b/src/styles/style.scss
index 2e97a5a..382e328 100644
--- a/src/styles/style.scss
+++ b/src/styles/style.scss
@@ -710,3 +710,38 @@
}
}
}
+
+#loading {
+ & {
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ z-index: 9998;
+
+ visibility: hidden;
+ }
+
+ #root:has(.stApp[data-test-script-state="running"]) ~ & {
+ visibility: visible;
+ }
+
+ .backdrop {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ z-index: 9998;
+ background: var(--cds-overlay);
+ }
+
+ .spinner {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ z-index: 9999;
+ }
+}