Skip to content

Commit

Permalink
update demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
sugatoray committed Jan 24, 2022
1 parent a54cc8e commit 566b680
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/demo/streamlit_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import streamlit as st
# import pyautogui # This does not work on Streamlit Cloud
import utils as U
import factory as F
import appfactory as F

## To emulate streamlit cloud specific app
## restrictions uncomment the following line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
from utils import Defaults


__all__ = [
"setup_app",
"setup_preamble",
"setup_sidebar",
]


def setup_sidebar() -> Tuple[Dict, Dict]:
with st.sidebar:
st.write("## ⚙️ Parameters")
Expand Down
13 changes: 13 additions & 0 deletions apps/demo/streamlit_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
from typing import Tuple, Dict, List, Optional


__all__ = [
"Defaults",
"is_streamlit_cloud",
"add_about_section",
"get_conversion_endpoints",
"get_input",
"eval_output",
"display_input",
"display_output",
"display_guessed_text",
]


DEFAULT_SCHEMA = "ACGT"


Expand Down

0 comments on commit 566b680

Please sign in to comment.