FatwaAi / README.md
Hamada-Fathy's picture
Upload folder using huggingface_hub
b0afd07 verified

A newer version of the Gradio SDK is available: 4.36.1

Upgrade
metadata
title: FatwaAi
app_file: openai_intella.py
sdk: gradio
sdk_version: 4.16.0

Fatwa_UAE

OpenAI Question Answering Interface

This application utilizes OpenAI's GPT-3.5 model to provide answers to queries based on the content from the Fatwa UAE website. It features a user-friendly and accessible interface created using Gradio.

This application accepting text and audio records from the user in arabic language

Installation

To use this application, certain Python packages are required. Execute the following command in your terminal to install them:

pip install openai gradio openai-whisper

Ensure Python is installed on your system. This application supports Python version 3.8 or higher.

Configurations

An API key from OpenAI is necessary to access the GPT-3.5 model. Replace the placeholder in the script with your personal API key.

Running the Application

Once you've installed the necessary packages and set up your API key, you can launch the application. Run the Python script either from the command line or via an IDE of your choosing using the following command:

python openai_gradio.py

Make sure to substitute 'YOUR_API_KEY' in the script with your actual OpenAI API key. Additionally, if the script mentions a logo image file (like 'path_to_your_logo.png'), replace this with the actual path to your logo image.

Usage

When the script is operational, a web interface will open. This interface enables users to pose questions and receive answers. These answers are generated by the OpenAI GPT-3.5 model, drawing on the content outlined in the script.