promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.21k stars 238 forks source link

Can't import HubModel #56

Closed coltonflowers1 closed 1 year ago

coltonflowers1 commented 1 year ago
(.venv) coltonflowers@ip-192-168-1-170 ~ % python                       
Python 3.9.6 (v3.9.6:db3ff76da1, Jun 28 2021, 11:49:53) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from promptify import HubModel, Prompter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'HubModel' from 'promptify' (/Users/coltonflowers/.venv/lib/python3.9/site-packages/promptify/__init__.py)
monk1337 commented 1 year ago

Install from git directly

pip3 install git+https://github.com/promptslab/Promptify.git

coltonflowers1 commented 1 year ago

I still receive the same error, even after installing from git directly.

monk1337 commented 1 year ago

Please install it from GitHub again and try now, I have fixed the name of the model.