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