This is a simple web application built using Flask that takes user input (a prompt) and sends it to an API to receive a response. The application uses the x.ai
API to generate responses based on user prompts, and displays the response with a typing effect.
- User Input: Users can enter a prompt through a textarea in the web interface.
- Response from API: The user input is sent to the
x.ai
API, and the app retrieves a response. - Stop Generating: Users can stop the typing effect at any time using the "Stop Generating" button.
- Python 3.x
- Flask
requests
library
-
Clone the repository:
git clone https://github.com/webcrafter011/Grok-Chatbot.git cd Grok-Chatbot
-
Change the API key to your API key and run python app.py
python3 app.py
-
Access your personal chatbot you can now access your personal chatbot assistant on http://127.0.0.1:5000/
Contributions are welcome! Feel free to submit pull requests or open issues for improvements and bug fixes.