This project allows you to interact with Azure GPT-4 for generating text and DALL-E 3 for generating images through a user-friendly interface powered by Gradio.
- GPT-4 Text Generation: Enter a prompt and generate meaningful, contextually accurate text responses.
- DALL-E 3 Image Generation: Input a text description, and DALL-E 3 will generate a high-quality image based on the prompt.
- Gradio Interface: Easily interact with both AI models through a simple and clean web interface.
- Python 3.7+
requests
librarygradio
library- API keys for both Azure GPT-4 and DALL-E 3 from OpenAI or Azure platform.
-
Install dependencies:
pip install requests gradio python-dotenv
-
Get API Keys:
-
Run the app:
python app.py
-
Open your browser and visit the provided URL to interact with the interface.
- GPT-4: Takes a text prompt and provides a conversational AI response.
- DALL-E 3: Takes a descriptive text prompt and generates an image based on the input.
- You can modify the temperature, max tokens, and other parameters for GPT-4 text generation to adjust the style and length of responses.
- For image generation, adjust the image size and the model if required.
Feel free to fork this repository, submit issues, and create pull requests for improvements.
This project is licensed under the MIT License - see the LICENSE file for details.