Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import random
|
4 |
-
|
|
|
|
|
5 |
|
6 |
-
# Set your
|
7 |
-
|
8 |
-
|
9 |
-
client = AzureOpenAI(api_key=os.getenv("AZURE_OPENAI_API_KEY"), api_version=AZURE_API_VERSION, azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"))
|
10 |
|
11 |
# model = genai.GenerativeModel(model_name='gemini-2.0-flash-exp')
|
12 |
# query = "Tell me about yourself"
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import random
|
4 |
+
import google.generativeai as genai
|
5 |
+
from kaggle_secrets import UserSecretsClient
|
6 |
+
from IPython.display import display, Markdown
|
7 |
|
8 |
+
# Set your GEMINI API key
|
9 |
+
api_key = os.getenv("GEMINI_API_KEY")
|
10 |
+
genai.configure(api_key = api_key)
|
|
|
11 |
|
12 |
# model = genai.GenerativeModel(model_name='gemini-2.0-flash-exp')
|
13 |
# query = "Tell me about yourself"
|