Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ import openai
|
|
12 |
|
13 |
# initialize userinput
|
14 |
userinput = ""
|
|
|
|
|
|
|
|
|
15 |
# Define a function to split text into chunks
|
16 |
def chunk_text(text, chunk_size=2000):
|
17 |
chunks = []
|
|
|
12 |
|
13 |
# initialize userinput
|
14 |
userinput = ""
|
15 |
+
# Initialize session state
|
16 |
+
if 'claims_extraction' not in st.session_state:
|
17 |
+
st.session_state.claims_extraction = ""
|
18 |
+
|
19 |
# Define a function to split text into chunks
|
20 |
def chunk_text(text, chunk_size=2000):
|
21 |
chunks = []
|