TalkToModel
TalkToModel copied to clipboard
"Help me generate a question about" no response
Hello Dylan, thank you so much for building and opening source such amazing work! I really like this project, and I believe it will have a big impact.
One question I had was about the "Help me generate a question about" function. I ran the demo, but clicking the buttons like "important features", "explanations", etc didn't give me any response. May I ask what is the correct way of using this functionality? Thanks.
hey thanks for pointing this out, I'll see if I can replicate it and try and figure out what happened along the way here... I should have time to check it out this week. cheers
Hello,
I think the error is:
[2024-06-13 14:21:29,418] ERROR in app: Exception on /sample_prompt [POST]
Traceback (most recent call last):
File "C:\Users\Zoe\Downloads\TalkToModel-main\.venv\lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\Zoe\Downloads\TalkToModel-main\.venv\lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\Zoe\Downloads\TalkToModel-main\.venv\lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\Zoe\Downloads\TalkToModel-main\.venv\lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Users\Zoe\Downloads\TalkToModel-main\flask_app.py", line 98, in sample_prompt
prompt = sample_prompt_for_action(action,
File "C:\Users\Zoe\Downloads\TalkToModel-main\explain\sample_prompts_by_action.py", line 75, in sample_prompt_for_action
for filename in filename_to_prompt_ids:
TypeError: 'NoneType' object is not iterable
Since the filename_to prompt_ids is empty: https://github.com/dylan-slack/TalkToModel/blob/main/explain/sample_prompts_by_action.py#L75