Merge pull request #211 from hakaserver/main

Temp. fix due to changes to Civitai Rest API
pull/245/head
Tom 2024-02-24 16:36:57 +01:00 committed by GitHub
commit 82d4bc4004
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -757,7 +757,7 @@ def update_model_info(model_string=None, model_version=None, only_html=False, in
img_html = '<div class="sampleimgs"><input type="radio" name="zoomRadio" id="resetZoom" class="zoom-radio" checked>'
for index, pic in enumerate(selected_version['images']):
meta_button = False
meta = pic['meta']
meta = pic['metadata']
if meta and meta.get('prompt'):
meta_button = True
BtnImage = True
@ -1219,4 +1219,4 @@ def request_civit_api(api_url=None):
except json.JSONDecodeError:
print("The CivitAI servers are currently offline. Please try again later.")
return "timeout"
return data
return data