Skip to content

I am creating an open source project for everyone to participate in it and that everyone can benefit from it. The project is simple we want to enhance the custom OpenAI's GPT model. We can add multiple new features in this web app for example translate languages etc. Use your creativity to bring your ideas to life.

License

Notifications You must be signed in to change notification settings

Umair0343/gpt-retransformed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt-retransformed

This project is a Flask-based web application that leverages OpenAI's GPT-3.5-turbo models to perform various natural language processing tasks. Users can interact with the application through a web interface, where they can select a model, provide a prompt, and choose an operation (like sentiment analysis, text classification, translation, summarization, or text completion).

Here is how the main window looks like:

Screenshot 2024-08-09 at 3 51 21 PM

Clicking on the "Completions" button will take you to the next window in which you can design/write your prompt: Screenshot 2024-08-09 at 3 56 45 PM

Finally to use specific tasks feature click on the "Specific Tasks" button. This will take you to the following window: Screenshot 2024-08-09 at 3 53 27 PM

Key Features:

  • Model Selection: Users can choose from a list of available GPT-3.5-turbo models.
  • Prompt Input: Users can input custom prompts for the selected model.
  • Operation Selection: Users can specify the desired operation for the prompt.
  • Dynamic Response Rendering: The application calls the OpenAI API with the provided inputs and displays the generated response on a results page.
  • Multiple Endpoints: The app includes several routes to handle different types of requests and render the corresponding templates.

The app includes the following endpoints:

  • /results: Handles GET requests to process user input and display the generated response.
  • /results_new: Similar to /results, but includes the additional functionality to specify an operation for the prompt.
  • /: The main index page.
  • /prompt_design: A page where users can design their prompts.
  • /specific_tasks: A page focused on specific tasks like sentiment analysis or translation.

Note: Please generate OpenAI API key first from the OpenAI website and replace YOUR_API_KEY with your API key in app.py code file to generate the response.

How to execute the code:

To install OpenAI and Flask libraries you can use the following terminal commands:

  • pip3 install openai
  • pip3 install flask

To execute the application run the following command:

  • python3 app.py

To run the application, ensure you have Flask and OpenAI libraries installed, set up your OpenAI API key, and execute the script. The app will be accessible on your browser, allowing you to experiment with different prompts and operations using GPT-3.5-turbo models.

About

I am creating an open source project for everyone to participate in it and that everyone can benefit from it. The project is simple we want to enhance the custom OpenAI's GPT model. We can add multiple new features in this web app for example translate languages etc. Use your creativity to bring your ideas to life.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published