Skip to content

webcrafter011/Grok-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Prompt to Response Flask App

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.

Features

  • 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.

Requirements

  • Python 3.x
  • Flask
  • requests library

Installation

  1. Clone the repository:

    git clone https://github.com/webcrafter011/Grok-Chatbot.git
    cd Grok-Chatbot
    
  2. Change the API key to your API key and run python app.py

    python3 app.py
    
  3. Access your personal chatbot you can now access your personal chatbot assistant on http://127.0.0.1:5000/

Contributions

Contributions are welcome! Feel free to submit pull requests or open issues for improvements and bug fixes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published