chembfn-webui 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of chembfn-webui might be problematic. Click here for more details.
- chembfn_webui/bin/app.py +2 -10
- chembfn_webui/cache/results.csv +1 -0
- chembfn_webui/lib/version.py +1 -1
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/METADATA +1 -1
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/RECORD +9 -9
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/WHEEL +0 -0
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/entry_points.txt +0 -0
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {chembfn_webui-1.1.0.dist-info → chembfn_webui-1.2.0.dist-info}/top_level.txt +0 -0
chembfn_webui/bin/app.py
CHANGED
|
@@ -42,8 +42,6 @@ from lib.version import __version__
|
|
|
42
42
|
|
|
43
43
|
vocabs = find_vocab()
|
|
44
44
|
models = find_model()
|
|
45
|
-
_lora_selected = False # lora select flag
|
|
46
|
-
_run_in_public = False # public flag
|
|
47
45
|
cache_dir = Path(__file__).parent.parent / "cache"
|
|
48
46
|
|
|
49
47
|
HTML_STYLE = gr.InputHTMLAttributes(
|
|
@@ -131,13 +129,9 @@ def select_lora(evt: gr.SelectData, prompt: str) -> str:
|
|
|
131
129
|
:return: new prompt string
|
|
132
130
|
:rtype: str
|
|
133
131
|
"""
|
|
134
|
-
global _lora_selected
|
|
135
|
-
if _lora_selected and not _run_in_public: # avoid double select
|
|
136
|
-
_lora_selected = False
|
|
137
|
-
return prompt
|
|
138
132
|
selected_lora = evt.value
|
|
139
|
-
|
|
140
|
-
if evt.index[1] != 0:
|
|
133
|
+
exist_lora = parse_prompt(prompt)["lora"]
|
|
134
|
+
if evt.index[1] != 0 or selected_lora in exist_lora:
|
|
141
135
|
return prompt
|
|
142
136
|
if not prompt:
|
|
143
137
|
return f"<{selected_lora}:1>"
|
|
@@ -625,8 +619,6 @@ def main() -> None:
|
|
|
625
619
|
)
|
|
626
620
|
parser.add_argument("-V", "--version", action="version", version=__version__)
|
|
627
621
|
args = parser.parse_args()
|
|
628
|
-
global _run_in_public
|
|
629
|
-
_run_in_public = args.public
|
|
630
622
|
app.launch(share=args.public, allowed_paths=[cache_dir.absolute().__str__()])
|
|
631
623
|
|
|
632
624
|
|
chembfn_webui/cache/results.csv
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CC1(CON)CCC(N)CC1
|
chembfn_webui/lib/version.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
chembfn_webui/__init__.py,sha256=AXUdd_PrlfVO56losFUP7A8XrqCDPylwRbTpe_WG3Uc,87
|
|
2
|
-
chembfn_webui/bin/app.py,sha256=
|
|
2
|
+
chembfn_webui/bin/app.py,sha256=ZyiAYiTFtTUnyrlENqXV9ByDKMi2WtMJPnAMcaKTidM,21612
|
|
3
3
|
chembfn_webui/cache/cache_file_here.txt,sha256=hi60T_q6Cf5WPtXuwe4CqjiWpaUqrczsmGMhKIUL--M,28
|
|
4
|
-
chembfn_webui/cache/results.csv,sha256=
|
|
4
|
+
chembfn_webui/cache/results.csv,sha256=CaKNQmiX5sbUCdqndjWzllSVi_s9sev8i3Nj0hLJ4LU,17
|
|
5
5
|
chembfn_webui/lib/utilities.py,sha256=ALPw-Evjd9DdsU_RQA6Zp2Gc6XnRR7Y_5fZrqG9azWo,7460
|
|
6
|
-
chembfn_webui/lib/version.py,sha256=
|
|
6
|
+
chembfn_webui/lib/version.py,sha256=EBNxY5E7vFFhf4osZe_mH3SbhzHBV9PM1CC9AQ_7PWc,138
|
|
7
7
|
chembfn_webui/model/base_model/place_base_model_here.txt,sha256=oa8_ILaAlWpTXICVDi-Y46_OahV7wB6Che6gbiEIh-c,39
|
|
8
8
|
chembfn_webui/model/lora/place_lora_folder_here.txt,sha256=YYOo0Cj278DyRcgVrCLa1f2Q-cqgNeMnelaLiA3Fuic,69
|
|
9
9
|
chembfn_webui/model/standalone_model/place_standalone_model_folder_here.txt,sha256=Dp42UscfI0Zp3SnvRv5vOfWiJZnxdY7rG3jo0kf86VM,80
|
|
10
10
|
chembfn_webui/model/vocab/place_vocabulary_file_here.txt,sha256=fLOINvZP2022oE7RsmfDjgyaw2yMi7glmdu_cTwmo88,28
|
|
11
|
-
chembfn_webui-1.
|
|
12
|
-
chembfn_webui-1.
|
|
13
|
-
chembfn_webui-1.
|
|
14
|
-
chembfn_webui-1.
|
|
15
|
-
chembfn_webui-1.
|
|
16
|
-
chembfn_webui-1.
|
|
11
|
+
chembfn_webui-1.2.0.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
12
|
+
chembfn_webui-1.2.0.dist-info/METADATA,sha256=5OXhUF4QixSdnnSLTJkrLxznBQ8-y8UhCfxA7TzuliA,6412
|
|
13
|
+
chembfn_webui-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
chembfn_webui-1.2.0.dist-info/entry_points.txt,sha256=fp8WTPybvwpeYKrUhTi456wwZbmCMJXN1TeFGpR1SlY,55
|
|
15
|
+
chembfn_webui-1.2.0.dist-info/top_level.txt,sha256=VdWt3Z7jhbB0pQO_mkRawnU5s75SBT9BV8fGaAIJTDI,14
|
|
16
|
+
chembfn_webui-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|