Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Help me generate a question about" no response #5

Open
ShichangZh opened this issue Apr 24, 2023 · 2 comments
Open

"Help me generate a question about" no response #5

ShichangZh opened this issue Apr 24, 2023 · 2 comments

Comments

@ShichangZh
Copy link

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.

@dylan-slack
Copy link
Owner

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

@zoevas
Copy link

zoevas commented Jun 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants