shikharyashmaurya commited on
Commit
5167482
1 Parent(s): 3e8b0d8

Rename improved-fact-checker-app.py to app.py

Browse files
improved-fact-checker-app.py → app.py RENAMED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import google.generativeai as genai
3
  import ast
4
  import time
5
- # import os
6
  import re
7
  from typing import List, Tuple, Optional
8
 
@@ -12,7 +12,7 @@ def extract_python_code(text: str) -> Optional[str]:
12
  return match.group(1).strip() if match else None
13
 
14
  def configure_genai():
15
- secret_key = 'AIzaSyBK7WgO74DGM0xZJc5f9lTITQK9c50xJN4'#os.getenv("SECRET_KEY")
16
  if not secret_key:
17
  st.error("API key not found. Please set the SECRET_KEY environment variable.")
18
  st.stop()
 
2
  import google.generativeai as genai
3
  import ast
4
  import time
5
+ import os
6
  import re
7
  from typing import List, Tuple, Optional
8
 
 
12
  return match.group(1).strip() if match else None
13
 
14
  def configure_genai():
15
+ secret_key = os.getenv("SECRET_KEY")
16
  if not secret_key:
17
  st.error("API key not found. Please set the SECRET_KEY environment variable.")
18
  st.stop()