-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.py
40 lines (33 loc) · 1.14 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import streamlit as st
st.title("LLM-Generated Simulation Apps")
st.markdown(
"""
**Discrete-event simulation (DES) model web applications generated using Large
Language Models (LLMs).**"""
)
st.divider()
st.markdown(
"""
This application is complementary to:
> Thomas Monks, Alison Harper, and Amy Heather. **Research Compendium:
Replicating Simulations in Python using Generative AI**.
https://github.com/pythonhealthdatascience/llm_simpy.
It deploys the streamlit applications generated using Perplexity as a single
app via stlite and GitHub pages.
Use the sidebar to navigate to each app.
"""
)
st.divider()
st.info("""
The apps use `st.spinner()` to show a spinning icon when the model is running,
but this does not work with `stlite`. Hence, it may appear like nothing is
happening, when the model is actually running behind the scenes (once you
click "simulate"). This is mainly relevant to the stroke model which takes a
little longer to run, but you can speed it up by reducing the number of
replications.
""", icon="ℹ️")
st.divider()
st.markdown(
"""
Source code: https://github.com/pythonhealthdatascience/llm_simpy_models."""
)