Engineer786 commited on
Commit
2a6e98a
·
verified ·
1 Parent(s): 372064c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ from groq import Groq
8
 
9
  # Fetch API key from environment variable
10
  API_KEY = os.environ.get('GroqApi')
11
-
12
  # Initialize global variables
13
  CHUNKS = None
14
  INDEX = None
@@ -74,7 +74,7 @@ if st.button("Process Tariff Data"):
74
  with st.spinner("Extracting and processing data..."):
75
  try:
76
  # Declare globals and assign values
77
- global CHUNKS, INDEX, MODEL
78
  text = scrape_tariff_data(url)
79
  CHUNKS = chunk_text(text)
80
  INDEX, embeddings, MODEL = create_faiss_index(CHUNKS)
 
8
 
9
  # Fetch API key from environment variable
10
  API_KEY = os.environ.get('GroqApi')
11
+ global CHUNKS, INDEX, MODEL
12
  # Initialize global variables
13
  CHUNKS = None
14
  INDEX = None
 
74
  with st.spinner("Extracting and processing data..."):
75
  try:
76
  # Declare globals and assign values
77
+
78
  text = scrape_tariff_data(url)
79
  CHUNKS = chunk_text(text)
80
  INDEX, embeddings, MODEL = create_faiss_index(CHUNKS)