pain's picture
Upload 6 files
b0359f9 verified
|
raw
history blame
1.69 kB

Gradio Application

This is a Gradio application that allows you to generate an Arabic story using generative AI models.

Installation

  1. Clone this repository:

    git clone https://github.com/mohammad-albarham/Arabic_story_generator.git
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Add the keys for OPEN AI API model and stability AI API in models.py and image_generator.py

  2. Run the application:

    gradio app.py
    
  3. Open your web browser and navigate to http://localhost:7860.

  4. Add your a description and the needed number of pages and click on generate story.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Instrcutions for the contribution:

  1. Please install black formatter as follows: pip install black
  2. Make sure to format all python files you want to change using this command on the terminal: black .

You can see this tutorial for more information about the formatter: tutorial

License

ACADEMIC PUBLIC LICENSE