DrishtiSharma commited on
Commit
22a656b
·
verified ·
1 Parent(s): 8e73956

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,6 +13,10 @@ import logging
13
  # Setup logging
14
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
15
 
 
 
 
 
16
  # API Key Validation and LLM Initialization
17
  groq_api_key = os.getenv("GROQ_API_KEY")
18
  openai_api_key = os.getenv("OPENAI_API_KEY")
@@ -32,10 +36,6 @@ elif model_choice == "OpenAI":
32
  else:
33
  llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
34
 
35
- # Model Selection on Main Screen
36
- st.header("Model Selection")
37
- model_choice = st.selectbox("Select LLM Provider", ["Groq-based LLM", "OpenAI"])
38
-
39
  # Title and Application Introduction
40
  st.title("Patent Strategy and Innovation Consultant")
41
  st.sidebar.write(
 
13
  # Setup logging
14
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
15
 
16
+ # Model Selection
17
+ st.header("Model Selection")
18
+ model_choice = st.selectbox("Select LLM Provider", ["Groq-based LLM", "OpenAI"])
19
+
20
  # API Key Validation and LLM Initialization
21
  groq_api_key = os.getenv("GROQ_API_KEY")
22
  openai_api_key = os.getenv("OPENAI_API_KEY")
 
36
  else:
37
  llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
38
 
 
 
 
 
39
  # Title and Application Introduction
40
  st.title("Patent Strategy and Innovation Consultant")
41
  st.sidebar.write(