Commit
·
9d24307
1
Parent(s):
6e806f9
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ text_input = st.text_area('Enter financial filing data (one entry per line)')
|
|
9 |
if text_input:
|
10 |
lines = text_input.strip().split("\n") # Split input by lines
|
11 |
outputs = [pipe(line) for line in lines] # Process each line with the pipeline
|
12 |
-
|
13 |
for line, out in zip(lines, outputs): # Display original lines and their corresponding output
|
14 |
-
st.
|
15 |
-
|
|
|
|
9 |
if text_input:
|
10 |
lines = text_input.strip().split("\n") # Split input by lines
|
11 |
outputs = [pipe(line) for line in lines] # Process each line with the pipeline
|
12 |
+
|
13 |
for line, out in zip(lines, outputs): # Display original lines and their corresponding output
|
14 |
+
with st.beta_container(): # Using a container for each output
|
15 |
+
st.write(f"Text: {line}")
|
16 |
+
st.json(out)
|