ProfessorLeVesseur
commited on
Commit
•
f0aa736
1
Parent(s):
d072b71
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,50 @@ if not hf_api_key:
|
|
20 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
21 |
headers = {"Authorization": f"Bearer {hf_api_key}"}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
#------------------------------------------------------------------------
|
24 |
# Define functions
|
25 |
#------------------------------------------------------------------------
|
|
|
20 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
21 |
headers = {"Authorization": f"Bearer {hf_api_key}"}
|
22 |
|
23 |
+
#------------------------------------------------------------------------
|
24 |
+
# Configurations
|
25 |
+
#------------------------------------------------------------------------
|
26 |
+
# Streamlit page setup
|
27 |
+
st.set_page_config(
|
28 |
+
page_title="Intervention Program Analysis",
|
29 |
+
page_icon=":bar_chart:",
|
30 |
+
layout="centered",
|
31 |
+
initial_sidebar_state="auto",
|
32 |
+
menu_items={
|
33 |
+
'Get Help': 'mailto:[email protected]',
|
34 |
+
'About': "This app is built to support spreadsheet analysis"
|
35 |
+
}
|
36 |
+
)
|
37 |
+
|
38 |
+
#------------------------------------------------------------------------
|
39 |
+
# Sidebar
|
40 |
+
#------------------------------------------------------------------------
|
41 |
+
with st.sidebar:
|
42 |
+
# Password input field
|
43 |
+
# password = st.text_input("Enter Password:", type="password")
|
44 |
+
|
45 |
+
# Set the desired width in pixels
|
46 |
+
image_width = 300
|
47 |
+
# Define the path to the image
|
48 |
+
image_path = "mimtss.png"
|
49 |
+
# Display the image
|
50 |
+
st.image(image_path, width=image_width)
|
51 |
+
|
52 |
+
# Toggle for Help and Report a Bug
|
53 |
+
with st.expander("Need help and report a bug"):
|
54 |
+
st.write("""
|
55 |
+
**Contact**: Cheyne LeVesseur, PhD
|
56 |
+
**Email**: [email protected]
|
57 |
+
""")
|
58 |
+
st.divider()
|
59 |
+
st.subheader('User Instructions')
|
60 |
+
|
61 |
+
# Principles text with Markdown formatting
|
62 |
+
User_Instructions = """
|
63 |
+
Enter a detailed description of the image you want to generate, and the app will create it based on your prompt.
|
64 |
+
"""
|
65 |
+
st.markdown(User_Instructions)
|
66 |
+
|
67 |
#------------------------------------------------------------------------
|
68 |
# Define functions
|
69 |
#------------------------------------------------------------------------
|