JeCabrera commited on
Commit
dc88e81
·
verified ·
1 Parent(s): 0e55807

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -1
README.md CHANGED
@@ -11,4 +11,50 @@ sdk: gradio
11
  sdk_version: 5.12.0
12
  app_file: app.py
13
  pinned: false
14
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  sdk_version: 5.12.0
12
  app_file: app.py
13
  pinned: false
14
+ license: apache-2.0
15
+
16
+ # Gemini Playground 💬
17
+
18
+ ## Overview
19
+
20
+ Gemini Playground is an interactive Python application that leverages Google Generative AI and Gradio to provide a platform for experimenting with Gemini Pro and Gemini Pro Vision models. Users can engage in dynamic conversations with the chatbot, utilizing text and image prompts to generate creative and context-aware responses.
21
+
22
+ ![img](https://github.com/arham-kk/gemini-demo/assets/108623726/d88a8c82-4fcc-45fd-aea3-4a6a88787200)
23
+
24
+ ## Prerequisites
25
+
26
+ Before running the code, ensure you have the necessary dependencies installed. You can install them using the following command:
27
+
28
+ ```bash
29
+ pip install -r requirements.txt
30
+ ```
31
+
32
+ Make sure to obtain your own Google API key by visiting [GOOGLE API KEY](https://makersuite.google.com/app/apikey) and follow the instructions.
33
+
34
+ ## Usage
35
+
36
+ 1. Set up your Google API key by entering it in the `GOOGLE API KEY` textbox.
37
+ 2. Optionally provide an image prompt to explore the capabilities of Gemini Pro Vision.
38
+ 3. Input your text prompt in the `Ask me anything and press Enter` textbox.
39
+ 4. Adjust various parameters such as temperature, token limit, stop sequences, top-K, and top-P to tailor the model's behavior.
40
+ 5. Click the "Run" button to initiate the conversation.
41
+
42
+ ## Features
43
+
44
+ - **Gemini Pro and Gemini Pro Vision**: Choose between text-only (Gemini Pro) or text and image prompts (Gemini Pro Vision).
45
+ - **Interactive Chat Interface**: Engage in dynamic conversations with the chatbot using Gradio's intuitive chat interface.
46
+ - **Flexible Parameter Adjustment**: Fine-tune model behavior with adjustable parameters like temperature, token limit, and more.
47
+
48
+ ## Parameters
49
+
50
+ - **GOOGLE API KEY**: Your personal Google API key for accessing the Generative AI models.
51
+ - **Image**: Optional image prompt for Gemini Pro Vision.
52
+ - **Temperature**: Controls the randomness of the generated content. Higher values lead to more creative responses.
53
+ - **Token Limit**: Limit the length of the generated content in tokens.
54
+ - **Stop Sequences**: Specify stop sequences to control the generation process.
55
+ - **Top-K**: Control the diversity of the output by selecting from the top-K most likely tokens.
56
+ - **Top-P**: Control the diversity of the output by selecting tokens with cumulative probabilities up to the top-P threshold.
57
+
58
+ ## Important Note
59
+
60
+ Ensure you a valid Google API key to use the Gemini Pro and Gemini Pro Vision models.