Pedro Cuenca commited on
Commit
6c10869
2 Parent(s): 635b1bf bb7c400

Merge pull request #80 from borisdayma/app-progress

Browse files
Files changed (2) hide show
  1. app/app.py +13 -1
  2. app/img/loading.gif +0 -0
app/app.py CHANGED
@@ -60,7 +60,19 @@ prompt = st.text_input("What do you want to see?")
60
  DEBUG = False
61
  if prompt != "" or (should_run_again and prompt != ""):
62
  container = st.empty()
63
- container.markdown(f"Generating predictions for: **{prompt}**")
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  try:
66
  backend_url = st.secrets["BACKEND_SERVER"]
 
60
  DEBUG = False
61
  if prompt != "" or (should_run_again and prompt != ""):
62
  container = st.empty()
63
+ container.markdown(f"""
64
+ <style> p {{ margin:0 }} </style>
65
+ <p style="background-color:#FCF3CF;">
66
+ <img src="https://raw.githubusercontent.com/borisdayma/dalle-mini/main/app/img/loading.gif" width="30"/>
67
+ Generating predictions for: <b>{prompt}</b>
68
+ </p>
69
+ <small><i>Predictions may take up to 40s under high load. Please, stand by.</i></small>
70
+ """, unsafe_allow_html=True)
71
+ # container.markdown("more markdown")
72
+
73
+ # container.markdown(f"Generating predictions for: **{prompt}**")
74
+ # container.info(f"this is an info field")
75
+ # container.warning(f"this is a warning field")
76
 
77
  try:
78
  backend_url = st.secrets["BACKEND_SERVER"]
app/img/loading.gif ADDED