DrishtiSharma
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
from datetime import datetime
|
3 |
import streamlit as st
|
4 |
from patentwiz import preprocess_data, qa_agent, main
|
|
|
5 |
|
6 |
# Check if the API key is loaded
|
7 |
api_key = os.getenv("OPENAI_API_KEY")
|
@@ -58,7 +59,7 @@ if st.button("Analyze Patents"):
|
|
58 |
st.write("Starting patent analysis...")
|
59 |
for i, patent_file in enumerate(random_patents):
|
60 |
cost, output = qa_agent.call_QA_to_json(
|
61 |
-
|
62 |
year,
|
63 |
month,
|
64 |
day,
|
|
|
2 |
from datetime import datetime
|
3 |
import streamlit as st
|
4 |
from patentwiz import preprocess_data, qa_agent, main
|
5 |
+
from patentwiz.main import PROMPT
|
6 |
|
7 |
# Check if the API key is loaded
|
8 |
api_key = os.getenv("OPENAI_API_KEY")
|
|
|
59 |
st.write("Starting patent analysis...")
|
60 |
for i, patent_file in enumerate(random_patents):
|
61 |
cost, output = qa_agent.call_QA_to_json(
|
62 |
+
PROMPT,
|
63 |
year,
|
64 |
month,
|
65 |
day,
|