Skip to content

Harshul1484/Flask-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask Example

This is a Flask app that serves a simple JSON response.

Deploy on Railway

✨ Features

  • Python
  • Flask

πŸ’β€β™€οΈ How to use

  • Install Python requirements pip install -r requirements.txt
  • Start the server for development python3 main.py

πŸš€ Endpoints

Home

  • URL: /
  • Method: GET
  • Description: Returns a simple JSON response with a "data" key containing the string "hello world".

Chat Display

  • URL: /chat/{msg}
  • Method: GET
  • Description: Sends the provided message to the chat and returns the response from the chat as JSON.

Chat

  • URL: /chat
  • Method: POST
  • Description: Sends a message provided in the request payload to the chat and returns the response from the chat as JSON.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •