Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import google.generativeai as genai
|
| 3 |
-
from google.colab import userdata
|
| 4 |
|
| 5 |
# Configure Gemini AI
|
| 6 |
-
api_key =
|
| 7 |
genai.configure(api_key=api_key)
|
| 8 |
|
| 9 |
# Define the model with desired generation configuration
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import google.generativeai as genai
|
|
|
|
| 3 |
|
| 4 |
# Configure Gemini AI
|
| 5 |
+
api_key = os.getenv("GEMINI_API") # Fetch the Gemini API key securely
|
| 6 |
genai.configure(api_key=api_key)
|
| 7 |
|
| 8 |
# Define the model with desired generation configuration
|