Aswini96 commited on
Commit
5a8fa27
·
verified ·
1 Parent(s): 2ee0068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import os
2
  import gradio as gr
3
  import random
4
- from openai import AzureOpenAI
 
 
5
 
6
- # Set your OpenAI API key
7
- AZURE_API_VERSION = "2023-03-15-preview"
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"