DasariHarshitha commited on
Commit
ccd424d
·
verified ·
1 Parent(s): ac12f54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,10 +15,10 @@ if api_choice == "OpenAI":
15
  api_key = st.sidebar.text_input("Enter OpenAI API Key", type="password")
16
  if api_key:
17
  openai.api_key = api_key
18
- else:
19
- api_key = st.sidebar.text_input("Enter Google API Key", type="password")
20
- if api_key:
21
- genai.configure(api_key=api_key)
22
  # --------------------------
23
  # 3. User Code Input
24
  # --------------------------
 
15
  api_key = st.sidebar.text_input("Enter OpenAI API Key", type="password")
16
  if api_key:
17
  openai.api_key = api_key
18
+ else:
19
+ api_key = st.sidebar.text_input("Enter Google API Key", type="password")
20
+ if api_key:
21
+ genai.configure(api_key=api_key)
22
  # --------------------------
23
  # 3. User Code Input
24
  # --------------------------