Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,17 @@ import logging
|
|
14 |
# Setup logging
|
15 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# Initialize LLM
|
18 |
llm = None
|
19 |
|
@@ -40,17 +51,6 @@ elif model_choice == "OpenAI Model":
|
|
40 |
else:
|
41 |
llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
|
42 |
|
43 |
-
# Title and Application Introduction
|
44 |
-
st.title("Patent Strategy and Innovation Consultant")
|
45 |
-
st.sidebar.write(
|
46 |
-
"This application uses AI to provide actionable insights and comprehensive analysis for patent-related strategies."
|
47 |
-
)
|
48 |
-
|
49 |
-
# User Input Section
|
50 |
-
st.sidebar.header("User Inputs")
|
51 |
-
patent_area = st.text_input("Enter Patent Technology Area", value="Transparent Antennas for Windshields")
|
52 |
-
stakeholder = st.text_input("Enter Stakeholder", value="Patent Attorneys")
|
53 |
-
|
54 |
# Advanced Options
|
55 |
st.sidebar.header("Advanced Options")
|
56 |
enable_advanced_analysis = st.sidebar.checkbox("Enable Advanced Analysis", value=True)
|
|
|
14 |
# Setup logging
|
15 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
16 |
|
17 |
+
# Title and Application Introduction
|
18 |
+
st.title("Patent Strategy and Innovation Consultant")
|
19 |
+
st.sidebar.write(
|
20 |
+
"This application uses AI to provide actionable insights and comprehensive analysis for patent-related strategies."
|
21 |
+
)
|
22 |
+
|
23 |
+
# User Input Section
|
24 |
+
st.sidebar.header("User Inputs")
|
25 |
+
patent_area = st.text_input("Enter Patent Technology Area", value="Transparent Antennas for Windshields")
|
26 |
+
stakeholder = st.text_input("Enter Stakeholder", value="Patent Attorneys")
|
27 |
+
|
28 |
# Initialize LLM
|
29 |
llm = None
|
30 |
|
|
|
51 |
else:
|
52 |
llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
# Advanced Options
|
55 |
st.sidebar.header("Advanced Options")
|
56 |
enable_advanced_analysis = st.sidebar.checkbox("Enable Advanced Analysis", value=True)
|