AutoSurveys / AutoSurvey

250 stars 16 forks source link

Can't use web demo #19

Closed Kiki778899 closed 1 month ago

Kiki778899 commented 1 month ago

Dear author,

Thank you for the amazing work. However, the problem is I can't use web demo.

The mistake are the following: KeyError: 'password' Traceback: File "/home/guoqi/miniconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "/home/guoqi/miniconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec exec(code, module.dict) File "/home/guoqi/autosurvey_online/main.py", line 202, in login() File "/home/guoqi/autosurvey_online/main.py", line 151, in login authenticator = stauth.Authenticate( ^^^^^^^^^^^^^^^^^^^^ File "/home/guoqi/miniconda3/lib/python3.12/site-packages/streamlit_authenticator/views/authentication_view.py", line 54, in init self.authentication_controller = AuthenticationController(credentials, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/guoqi/miniconda3/lib/python3.12/site-packages/streamlit_authenticator/controllers/authentication_controller.py", line 45, in init self.authentication_model = AuthenticationModel(credentials, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/guoqi/miniconda3/lib/python3.12/site-packages/streamlit_authenticator/models/authentication_model.py", line 62, in init if not Hasher._is_hash(self.credentials['usernames'][username]['password']): Could you please help me with this problem?

GuoQi2000 commented 1 month ago

Hi @Kiki778899! We have fixed the bug, and you can try the web demo now :)