FritsLyneborg commited on
Commit
4d6a20d
1 Parent(s): b123cad

Update app.py

Browse files
Files changed (1) hide show
  1. app/streamlit/app.py +4 -4
app/streamlit/app.py CHANGED
@@ -86,18 +86,18 @@ if prompt != "":
86
 
87
  try:
88
  # FRITS: Det er den her der failer:
89
- #backend_url = st.secrets["BACKEND_SERVER"]
90
 
91
  print (type(st))
92
 
93
  print(f"Getting selections: {prompt}")
94
- #selected = get_images_from_backend(prompt, backend_url)
95
 
96
  margin = 0.1 # for better position of zoom in arrow
97
  n_columns = 3
98
  cols = st.columns([1] + [margin, 1] * (n_columns - 1))
99
- #for i, img in enumerate(selected):
100
- # cols[(i % n_columns) * 2].image(img)
101
  container.markdown(f"**{prompt}**")
102
 
103
  st.button("Again!", key="again_button")
 
86
 
87
  try:
88
  # FRITS: Det er den her der failer:
89
+ backend_url = "https://huggingface.co/spaces/FritsLyneborg/kunstnerfrits"# st.secrets["BACKEND_SERVER"]
90
 
91
  print (type(st))
92
 
93
  print(f"Getting selections: {prompt}")
94
+ selected = get_images_from_backend(prompt, backend_url)
95
 
96
  margin = 0.1 # for better position of zoom in arrow
97
  n_columns = 3
98
  cols = st.columns([1] + [margin, 1] * (n_columns - 1))
99
+ for i, img in enumerate(selected):
100
+ cols[(i % n_columns) * 2].image(img)
101
  container.markdown(f"**{prompt}**")
102
 
103
  st.button("Again!", key="again_button")