Ricercar commited on
Commit
99719fb
·
1 Parent(s): 692bdb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -117,14 +117,14 @@ class GalleryApp:
117
  st.write('**Seed**')
118
  st.caption(f"{items['seed'][0]}")
119
 
120
- # for tag as civitai, add civitai reference
121
- if tag == 'civitai':
122
- st.write('**Reference**')
123
-
124
- res = requests.get(f'https://civitai.com/images', params={'post_id': prompt_id})
125
- st.write(res)
126
- image_url = res.json()['items'][0]['url']
127
- st.image(image_url, use_column_width=True)
128
 
129
  # with images:
130
  selecters = st.columns([1, 1, 2, 0.5])
 
117
  st.write('**Seed**')
118
  st.caption(f"{items['seed'][0]}")
119
 
120
+ # # for tag as civitai, add civitai reference
121
+ # if tag == 'civitai':
122
+ # st.write('**Reference**')
123
+ #
124
+ # res = requests.get(f'https://civitai.com/images', params={'post_id': prompt_id})
125
+ # st.write(res)
126
+ # image_url = res.json()['items'][0]['url']
127
+ # st.image(image_url, use_column_width=True)
128
 
129
  # with images:
130
  selecters = st.columns([1, 1, 2, 0.5])