SoDa12321 commited on
Commit
f98b919
·
verified ·
1 Parent(s): d0239f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -4,6 +4,23 @@ import io
4
  from functions import get_report_fields, get_report_sections # Import the necessary functions
5
  import logging
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  # Initialize session state for tracking progress
8
  if 'session_tracker' not in st.session_state:
9
  st.session_state.session_tracker = []
 
4
  from functions import get_report_fields, get_report_sections # Import the necessary functions
5
  import logging
6
 
7
+ from exa_py import Exa
8
+ from groq import Groq
9
+ import os
10
+
11
+ # Declare the exa search API
12
+ exa = Exa(api_key=os.getenv("EXA_API_KEY"))
13
+
14
+ # Define your API Model and key
15
+ client = Groq(api_key=os.getenv("GROQ_API_KEY"))
16
+ utilized_model = "llama3-70b-8192"
17
+
18
+ # Options for highlights from Exa search
19
+ highlights_options = {
20
+ "num_sentences": 7, # Length of highlights
21
+ "highlights_per_url": 1, # Get the best highlight for each URL
22
+ }
23
+
24
  # Initialize session state for tracking progress
25
  if 'session_tracker' not in st.session_state:
26
  st.session_state.session_tracker = []