chembfn-webui 1.1.0__tar.gz → 1.2.0__tar.gz

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.

Files changed (22) hide show
  1. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/PKG-INFO +1 -1
  2. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/bin/app.py +2 -10
  3. chembfn_webui-1.2.0/chembfn_webui/cache/results.csv +1 -0
  4. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/lib/version.py +1 -1
  5. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/PKG-INFO +1 -1
  6. chembfn_webui-1.1.0/chembfn_webui/cache/results.csv +0 -0
  7. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/LICENSE +0 -0
  8. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/README.md +0 -0
  9. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/__init__.py +0 -0
  10. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/cache/cache_file_here.txt +0 -0
  11. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/lib/utilities.py +0 -0
  12. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/model/base_model/place_base_model_here.txt +0 -0
  13. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/model/lora/place_lora_folder_here.txt +0 -0
  14. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/model/standalone_model/place_standalone_model_folder_here.txt +0 -0
  15. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui/model/vocab/place_vocabulary_file_here.txt +0 -0
  16. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/SOURCES.txt +0 -0
  17. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/dependency_links.txt +0 -0
  18. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/entry_points.txt +0 -0
  19. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/requires.txt +0 -0
  20. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/chembfn_webui.egg-info/top_level.txt +0 -0
  21. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/setup.cfg +0 -0
  22. {chembfn_webui-1.1.0 → chembfn_webui-1.2.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chembfn_webui
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: WebUI for ChemBFN
5
5
  Home-page: https://github.com/Augus1999/ChemBFN-WebUI
6
6
  Author: Nianze A. Tao
@@ -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
- _lora_selected = True
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
 
@@ -0,0 +1 @@
1
+ CC1(CON)CCC(N)CC1
@@ -4,5 +4,5 @@
4
4
  Version info.
5
5
  """
6
6
 
7
- __version__ = "1.1.0"
7
+ __version__ = "1.2.0"
8
8
  __author__ = "Nianze A. TAO"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chembfn_webui
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: WebUI for ChemBFN
5
5
  Home-page: https://github.com/Augus1999/ChemBFN-WebUI
6
6
  Author: Nianze A. Tao
File without changes
File without changes
File without changes
File without changes
File without changes