Skip to content

Add core chatbot module and CLI interface#1

Open
HeiligerHoly wants to merge 1 commit intomasterfrom
codex/erstelle-den-chatbot
Open

Add core chatbot module and CLI interface#1
HeiligerHoly wants to merge 1 commit intomasterfrom
codex/erstelle-den-chatbot

Conversation

@HeiligerHoly
Copy link
Owner

Summary

  • extract reusable chatbot core logic for prediction and responses
  • update the Tkinter GUI to use the shared chatbot utilities
  • add a command line interface and README instructions for using the chatbot from the terminal

Testing

  • Not run (nltk dependency unavailable in the execution environment)

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +29 to +33
model_path: str | Path = "chatbot_model.h5",
intents_path: str | Path = "intents.json",
words_path: str | Path = "words.pkl",
classes_path: str | Path = "classes.pkl",
error_threshold: float = 0.25,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid Python 3.10-only type syntax in Chatbot init

The new Chatbot constructor uses the PEP604 union operator (str | Path, str | None) introduced in Python 3.10. The README still points users to keras 2.2.0 (the error guide) which only supports Python ≤3.6, so following the documented setup and running python chatgui.py or python chatbot_cli.py on that environment will raise a SyntaxError before the app starts. Consider reverting to typing.Union/Optional (or bumping the documented Python version) so the chatbot remains runnable on the advertised stack.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant