FritsLyneborg commited on
Commit
b123cad
1 Parent(s): 68602cb

Update app.py

Browse files
Files changed (1) hide show
  1. app/streamlit/app.py +8 -5
app/streamlit/app.py CHANGED
@@ -2,6 +2,7 @@
2
  # coding: utf-8
3
 
4
  import base64
 
5
  from io import BytesIO
6
 
7
  import requests
@@ -85,16 +86,18 @@ if prompt != "":
85
 
86
  try:
87
  # FRITS: Det er den her der failer:
88
- backend_url = st.secrets["BACKEND_SERVER"]
89
-
 
 
90
  print(f"Getting selections: {prompt}")
91
- selected = get_images_from_backend(prompt, backend_url)
92
 
93
  margin = 0.1 # for better position of zoom in arrow
94
  n_columns = 3
95
  cols = st.columns([1] + [margin, 1] * (n_columns - 1))
96
- for i, img in enumerate(selected):
97
- cols[(i % n_columns) * 2].image(img)
98
  container.markdown(f"**{prompt}**")
99
 
100
  st.button("Again!", key="again_button")
 
2
  # coding: utf-8
3
 
4
  import base64
5
+ from ensurepip import version
6
  from io import BytesIO
7
 
8
  import requests
 
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")