SaulLu commited on
Commit
8d66b6c
·
1 Parent(s): c608568

init space

Browse files
Files changed (2) hide show
  1. app.py +10 -0
  2. 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