Files
siliconflow-BizyAir/tests/write_api_ini_file.py
5be8fc9dd5 UI Redesign & Add Model Upload Capability (#111)
* update: test

* update: test

* test

* update: test

* update: test

* test

* update: test

* update: test

* update: test

* update: test

* update: test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* fix

* test

* test

* frontend

* update: test

* init

* update: list-files

* init

* fix

* update: list-files

* update: list-files

* fix

* update: list-files

* fix

* Dev modelhost yaochi (#109)

* remove florence2 caption node (#98)

* fix bug of category name (#100)

* Add ultimate-sd-upscale (#102)

* Add ultimate-sd-upscale

* refine

* refine

* ultimate_sd_upscale

* refine

* remove model that cannot be used in commercial

* Update README.md

* Update README.md

---------

Co-authored-by: Yao Chi <later@usopp.net>

* add sr deprecated message (#103)

* formatting code (#106)

* formatting code

* refine

* Refactor Bizyair and Code Formatting Improvements (#104)

* Refactor Bizyair and Code Formatting Improvements

* refine

* Delete redundant code

* Delete redundant code

* fix UNIQUE_ID

* refine

* refine

* refine

* skip Super Resolution test

* Add lora test server (#105)

* refine

* Delete src/bizyair/commands/servers/server_base.py

---------

Co-authored-by: Yao Chi <later@usopp.net>

* reformat

* news to new url

---------

Co-authored-by: FengWen <109639975+ccssu@users.noreply.github.com>

* add Single file upload

* fix: add get_api_key

* fix: dependencies check and invalid api_key errno

* fix: dependencies check and invalid api_key errno

* fix: print message

* refine the text content

* reformat

* fix

* refine content

* update: reduce allow types

* update: reduce allow types

* update: reduce allow types

* update: merge requirements_adv.txt to requirements.txt

* fix

* fix

* fix

* fix

* reformat

* update: change all server_address to bizyair-api.siliconflow.cn

* update ci ComfyUI version

* reformat and updage

* fix

* fix

* update: upload limit

* update: upload limit

* update: upload limit

* update: upload limit

* fix

* update: upload limit

* change to wait for bizyair logo

* fix

* update: adjust structure

* fix

* refine the queue btn CI

* use comfy queue btn class

* use js to wait queue finished

* refine

* write ini file and reformat

* fix: oss progressbar

* fix

* update: clear upload cache

* fix

* fix

* fix

* Fix Model Find (#112)

Co-authored-by: Yao Chi <later@usopp.net>

* remformat

* fix

* fix: model repeat delete

* Dev modelhost async upload file (#113)

* refine

* refine get loop

* chagne to async upload

* fix: path_manager.py

* fix: remove useless dependency

* fix: service_address

* fix

* flux dev fp8 (#107)

* flux dev fp8

* refine

---------

Co-authored-by: Yao Chi <later@usopp.net>

* add docs for lora model host (#115)

* refine

* fix the url route

* update readme

* add flux lora demo

* Add lora modelhost docs (#118)

* refine

* fix the url route

* update readme

* update news

---------

Co-authored-by: dantegarden <761043617@qq.com>
Co-authored-by: root <root@vscode-1631487780716577-vscode-master-0.vscode-1631487780716577-vscode.org-1599978210328609.svc.cluster.local>
Co-authored-by: Yao Chi <later@usopp.net>
Co-authored-by: FengWen <109639975+ccssu@users.noreply.github.com>
2024-09-06 13:00:34 +08:00

11 lines
367 B
Python

import configparser
import os
bizyair_key = os.getenv("BIZYAIR_KEY", "")
current_file_path = os.path.abspath(__file__)
current_directory = os.path.dirname(current_file_path)
config = configparser.ConfigParser()
config["auth"] = {"api_key": bizyair_key}
with open(os.path.join(current_directory, "..", "api_key.ini"), "w") as configfile:
config.write(configfile)