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

init space

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -2,9 +2,12 @@
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")
 
 
2
  import diff_viewer
3
  import streamlit as st
4
 
5
+ st.set_page_config(page_title="Diff visualizer", page_icon=":eyes:", layout="wide")
6
+
7
  col_text_1, col_text_2 = st.columns(2)
8
 
9
+ text_1 = col_text_1.text_input('Text 1 here:')
10
+ text_2 = col_text_2.text_input('Text 2 here:')
11
 
12
+ st.title("Difference")
13
+ diff_viewer.diff_viewer(old_text=text_1, new_text=text_2, lang="none")
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- streamlit_diff_viewer==0.0.2
 
 
1
+ streamlit_diff_viewer==0.0.2
2
+ streamlit==1.7.0