Pedro Cuenca commited on
Commit
687a914
·
1 Parent(s): 63679e9
Files changed (1) hide show
  1. app/streamlit/app.py +3 -2
app/streamlit/app.py CHANGED
@@ -2,6 +2,7 @@
2
  # coding: utf-8
3
 
4
  import streamlit as st
 
5
 
6
  from backend import ServiceError, get_images_from_backend, get_model_version
7
 
@@ -65,8 +66,8 @@ if prompt != "":
65
  )
66
 
67
  try:
68
- backend_url = st.secrets["BACKEND_SERVER"]
69
- print(f"Getting selections: {prompt}")
70
  selected = get_images_from_backend(prompt, backend_url)
71
 
72
  margin = 0.1 # for better position of zoom in arrow
 
2
  # coding: utf-8
3
 
4
  import streamlit as st
5
+ from datetime import datetime
6
 
7
  from backend import ServiceError, get_images_from_backend, get_model_version
8
 
 
66
  )
67
 
68
  try:
69
+ backend_url = st.secrets["BACKEND_SERVER"] + "/generate"
70
+ print(f"{datetime.now()} Getting selections: {prompt}")
71
  selected = get_images_from_backend(prompt, backend_url)
72
 
73
  margin = 0.1 # for better position of zoom in arrow