Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from diff_match_patch import diff_match_patch # Import from local file
|
|
3 |
import re
|
4 |
|
5 |
def main():
|
6 |
-
st.set_page_config(page_title="
|
7 |
-
st.title("
|
8 |
|
9 |
# Initialize session state
|
10 |
if 'old_text' not in st.session_state:
|
@@ -19,7 +19,7 @@ def main():
|
|
19 |
|
20 |
with col1:
|
21 |
st.session_state.old_text = st.text_area(
|
22 |
-
"Old
|
23 |
height=300,
|
24 |
value=st.session_state.old_text,
|
25 |
placeholder="Enter original text..."
|
@@ -27,7 +27,7 @@ def main():
|
|
27 |
|
28 |
with col2:
|
29 |
st.session_state.new_text = st.text_area(
|
30 |
-
"New
|
31 |
height=300,
|
32 |
value=st.session_state.new_text,
|
33 |
placeholder="Enter modified text..."
|
|
|
3 |
import re
|
4 |
|
5 |
def main():
|
6 |
+
st.set_page_config(page_title="Text Comparison Tool", layout="wide")
|
7 |
+
st.title("Text Comparison Tool")
|
8 |
|
9 |
# Initialize session state
|
10 |
if 'old_text' not in st.session_state:
|
|
|
19 |
|
20 |
with col1:
|
21 |
st.session_state.old_text = st.text_area(
|
22 |
+
"Old Text:",
|
23 |
height=300,
|
24 |
value=st.session_state.old_text,
|
25 |
placeholder="Enter original text..."
|
|
|
27 |
|
28 |
with col2:
|
29 |
st.session_state.new_text = st.text_area(
|
30 |
+
"New Text:",
|
31 |
height=300,
|
32 |
value=st.session_state.new_text,
|
33 |
placeholder="Enter modified text..."
|