Spaces:
Runtime error
Runtime error
init space
Browse files- app.py +10 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import diff_viewer
|
3 |
+
import streamlit as st
|
4 |
+
|
5 |
+
col_text_1, col_text_2 = st.columns(2)
|
6 |
+
|
7 |
+
tetx_1 = col_text_1.text_input('Text 1 here:')
|
8 |
+
tetx_2 = col_text_2.text_input('Text 2 here:')
|
9 |
+
|
10 |
+
diff_viewer.diff_viewer(old_text=col_text_1, new_text=col_text_2, lang="none")
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
streamlit_diff_viewer==0.0.2
|