Skip to content

m-abdelgaber/APG-GPTJ-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APG-GPTJ-website

License

This is a simple dynamic single-page website developed using the MERN stack (MongoDB, Express.js, React.js, Node.js). The website showcases classical Arabic poetry generated using the GPT-J language model.
You can view the live website from here: https://apg-gptj-bgpp.onrender.com/

APG-GPTJ-website

Background

The AI-generated classical Arabic poetry showcased on this website was generated using the GPT-J language model. The research paper titled "Generating Classical Arabic Poetry using Pre-trained Models" was presented at the EANLP conference and is now published on the ACL Anthology research journal.
You can view the paper from here: https://aclanthology.org/2022.wanlp-1.6/

Getting Started

To run this project locally, follow the instructions below:

  1. Clone the repository to your local machine.
  2. Install the required dependencies by running the following command:
    npm install
    
  3. Start the development server by running the following command:
    npm start
    
  4. Open your browser and visit http://localhost:3000 to access the website.

Usage

The website allows you to interact with the AI-generated classical Arabic poetry. You can select various parameters to filter the poems generated by the GPT-J model. The available parameters include:

  • Model: Select the desired model for generating the poetry.
  • Meter: Choose a specific meter (بحر) for the poems.
  • Topic: Specify a topic (موضوع) for the poems.
  • Qafya: Select a qafya (قافية) for the poems.

Once you have selected the desired parameters, the website will display the generated poems based on your selection. You can view the poems and click the "View Another Poem" button to load a different poem.

Please note that the poems shown on the website are pre-generated, and the model is not live.

Dependencies

The client code of this project relies on the following dependencies:

  • axios
  • @mui/material
  • react
  • react-dom
  • react-scripts

Make sure to install these dependencies using npm or any other package manager before running the project.

Acknowledgements

I would like to express our gratitude to the authors of the research paper "Generating Classical Arabic Poetry using Pre-trained Models" for their valuable contributions to the field of AI-generated poetry.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute this code for academic and non-commercial purposes.

Contact

If you have any questions, suggestions, or feedback regarding this project, please don't hesitate to contact us.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published