valhalla commited on
Commit
749bafa
1 Parent(s): ddb7a7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -55,6 +55,7 @@ if not st.session_state["models_loaded"]:
55
  prompt = st.text_input("What do you want to see?")
56
 
57
  DEBUG = False
 
58
  if prompt != "":
59
  container = st.empty()
60
  container.markdown(
@@ -74,7 +75,6 @@ if prompt != "":
74
  </div>
75
  </div>
76
  </div>
77
- <small><i>Predictions may take up to 40s under high load. Please stand by.</i></small>
78
  """,
79
  unsafe_allow_html=True,
80
  )
@@ -90,3 +90,5 @@ if prompt != "":
90
  container.markdown(f"**{prompt}**")
91
 
92
  st.button("Again!", key="again_button")
 
 
 
55
  prompt = st.text_input("What do you want to see?")
56
 
57
  DEBUG = False
58
+ # UI code taken from https://huggingface.co/spaces/flax-community/dalle-mini/blob/main/app/streamlit/app.py
59
  if prompt != "":
60
  container = st.empty()
61
  container.markdown(
 
75
  </div>
76
  </div>
77
  </div>
 
78
  """,
79
  unsafe_allow_html=True,
80
  )
 
90
  container.markdown(f"**{prompt}**")
91
 
92
  st.button("Again!", key="again_button")
93
+
94
+ container.markdown("<small><i>Predictions may take up to 40s under high load. Please stand by.</i></small>")