Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,13 +103,13 @@ def main():
|
|
103 |
for diff in parsed_data:
|
104 |
diff_text1 = diff['text1'].strip()
|
105 |
diff_text2 = diff['text2'].strip()
|
106 |
-
display_text1 = f"
|
107 |
-
display_text2 = f"
|
108 |
with col1.expander(f"{filename1} Difference Highlighted"):
|
109 |
-
st.
|
110 |
|
111 |
with col2.expander(f"{filename2} Difference Highlighted"):
|
112 |
-
st.
|
113 |
|
114 |
st.markdown(display_text)
|
115 |
except Exception as e:
|
|
|
103 |
for diff in parsed_data:
|
104 |
diff_text1 = diff['text1'].strip()
|
105 |
diff_text2 = diff['text2'].strip()
|
106 |
+
display_text1 = f"~~{diff_text1}~~".join(display_text1.split(diff_text1)) if diff_text1 in display_text1 else display_text1
|
107 |
+
display_text2 = f"~~{diff_text2}~~".join(display_text2.split(diff_text2)) if diff_text2 in display_text2 else display_text2
|
108 |
with col1.expander(f"{filename1} Difference Highlighted"):
|
109 |
+
st.write(display_text1)
|
110 |
|
111 |
with col2.expander(f"{filename2} Difference Highlighted"):
|
112 |
+
st.write(display_text2)
|
113 |
|
114 |
st.markdown(display_text)
|
115 |
except Exception as e:
|