AndreaBagno commited on
Commit
504e9d7
·
1 Parent(s): f660312
Files changed (2) hide show
  1. README_old.md +50 -0
  2. app.py +1 -1
README_old.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generative AI Application
2
+
3
+ This is a simple generative AI application built using OpenAI's GPT model, Gradio for the user interface, and tools for Wikipedia and Tavily web search.
4
+
5
+ ## Features
6
+ - Chat with OpenAI's GPT model.
7
+ - Use Wikipedia for quick information retrieval.
8
+ - Use Tavily for web search.
9
+
10
+ ## Setup Instructions
11
+
12
+ ### Prerequisites
13
+ - Python 3.10 or higher
14
+ - `uv` for package management
15
+
16
+ ### Installation
17
+ cd CAS_generative_AI
18
+ ```
19
+
20
+ 2. Copy the `.env.example` file to `.env` and fill in your API keys:
21
+ ```
22
+
23
+ 3. Install dependencies using `uv`:
24
+ ```bash
25
+ uv install
26
+ ```
27
+
28
+ ### Running the Application
29
+ This is a simple generative AI application built using OpenAI's GPT model, Gradio for the user interface, and tools for Wikipedia and Tavily web search.
30
+ **API keys are managed via a `.env` file and loaded automatically using `python-dotenv`.**
31
+ ```bash
32
+ python app.py
33
+ ```
34
+
35
+ The app will be available at `http://0.0.0.0:7860`.
36
+
37
+ ## Configuration
38
+ All configurations are stored in `config.yaml`. Update this file to modify settings such as API keys, model parameters, and tool options.
39
+
40
+ ## Tools
41
+ ### Wikipedia Tool
42
+ - Retrieves summaries from Wikipedia.
43
+ - Configurable language and number of sentences.
44
+
45
+ ### Tavily Tool
46
+ - Performs web searches using the Tavily API.
47
+ - Configurable search depth and result limits.
48
+
49
+ ## License
50
+ This project is licensed under the MIT License.
app.py CHANGED
@@ -41,7 +41,7 @@ with gr.Blocks(
41
  """
42
  # 🤖 AI Assistant with Tool Integration
43
 
44
- **Powered by GPT-4o-mini** • Ask anything and I'll use Wikipedia or web search to find accurate answers!
45
 
46
  ---
47
  """,
 
41
  """
42
  # 🤖 AI Assistant with Tool Integration
43
 
44
+ **Powered by GPT-5** • Ask anything and I'll use Wikipedia or web search to find accurate answers!
45
 
46
  ---
47
  """,