Merge pull request #92 from alexandersokol/fix/remove-updated-at-field

remove updated_at field from civit.ai response parsing
pull/97/head
Alexander Sokol 2024-03-17 13:31:02 +02:00 committed by GitHub
commit ee49a4a433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ def create_version_dict(version_data):
version = {
'id': version_data['id'],
'name': version_data['name'],
'updated_at': version_data['updatedAt'],
# 'updated_at': version_data['updatedAt'],
}
trained_words = []

View File

@ -66,6 +66,9 @@ def import_export_ui_block():
gr.Markdown('## Records import/export')
gr.Markdown('')
back_button = gr.Button('Back')
with gr.Tab("Import Civitai URL"):
with gr.Column():
civitai_import_ui_block()
with gr.Tab("Import JSON"):
import_file_widget = gr.File(label='Import .json file', file_types=['.json'])
import_result_widget = gr.HTML()
@ -82,9 +85,6 @@ def import_export_ui_block():
value='Export All')
export_button = gr.Button(value='Export')
export_file_widget = gr.File(visible=False)
with gr.Tab("Import Civitai URL"):
with gr.Column():
civitai_import_ui_block()
back_button.click(fn=None, _js='navigateBack')