Spaces:
Build error
Build error
Keane Moraes commited on
Commit ·
22ca17f
1
Parent(s): ca564a1
side by side columns for files
Browse files
app.py
CHANGED
|
@@ -4,21 +4,27 @@ import mdforest
|
|
| 4 |
import utils
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
col1, mid, col2 = st.columns([30,5,20])
|
| 10 |
with col1:
|
|
|
|
| 11 |
st.markdown("This is a demo of _one of the many_ use cases for an embedding of all your notes. This application lets you find **common ideas** between any two notes.")
|
| 12 |
st.markdown("You can upload two markdown files and the application will find the common ideas between them. It will generate insights based on the common ideas.")
|
| 13 |
st.markdown("**I will be building a better embedding model soon.** Stay tuned for updates. This is just a demo of what is possible with a good embedding model.")
|
| 14 |
with col2:
|
| 15 |
-
st.markdown("
|
| 16 |
st.image("media/qrcode.png")
|
| 17 |
|
| 18 |
-
st.markdown("
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
topics = {}
|
| 24 |
results = {}
|
|
|
|
| 4 |
import utils
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
|
| 8 |
|
| 9 |
col1, mid, col2 = st.columns([30,5,20])
|
| 10 |
with col1:
|
| 11 |
+
st.title("Welcome to Embeddr")
|
| 12 |
st.markdown("This is a demo of _one of the many_ use cases for an embedding of all your notes. This application lets you find **common ideas** between any two notes.")
|
| 13 |
st.markdown("You can upload two markdown files and the application will find the common ideas between them. It will generate insights based on the common ideas.")
|
| 14 |
st.markdown("**I will be building a better embedding model soon.** Stay tuned for updates. This is just a demo of what is possible with a good embedding model.")
|
| 15 |
with col2:
|
| 16 |
+
st.markdown("### [Sign up for updates](https://embeddr.my.canva.site/)")
|
| 17 |
st.image("media/qrcode.png")
|
| 18 |
|
| 19 |
+
st.markdown("---")
|
| 20 |
+
|
| 21 |
+
col3, mid2, col4 = st.columns([40,5,40])
|
| 22 |
+
with col3:
|
| 23 |
+
st.markdown("### Drop the first document")
|
| 24 |
+
file1 = st.file_uploader("Upload a file", type=["md", "txt"], key="first")
|
| 25 |
+
with col4:
|
| 26 |
+
st.markdown("### Drop the second document")
|
| 27 |
+
file2 = st.file_uploader("Upload a file", type=["md", "txt"], key="second")
|
| 28 |
|
| 29 |
topics = {}
|
| 30 |
results = {}
|