Spaces:
Runtime error
Runtime error
Download app.py from SaulLu/diff-visualizer: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/SaulLu/diff-visualizer/resolve/main/app.py
- Command line
-
hf download hf://spaces/SaulLu/diff-visualizer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SaulLu/diff-visualizer/resolve/main/app.py
357 Bytes
| import diff_viewer | |
| import streamlit as st | |
| st.set_page_config(page_title="Diff visualizer", page_icon=":eyes:", layout="wide") | |
| col_text_1, col_text_2 = st.columns(2) | |
| text_1 = col_text_1.text_area('Text 1 here:') | |
| text_2 = col_text_2.text_area('Text 2 here:') | |
| st.title("Difference") | |
| diff_viewer.diff_viewer(old_text=text_1, new_text=text_2, lang="none") |