Spaces:
Runtime error
Runtime error
titile added
Browse files
app.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
-
|
| 5 |
-
st.write(x, 'squared is', x * x)
|
| 6 |
-
|
| 7 |
-
from sentence_transformers import SentenceTransformer, util
|
| 8 |
|
| 9 |
|
|
|
|
| 10 |
text_input = st.text_input(
|
| 11 |
"Enter the title of any paper you like 👇",
|
| 12 |
placeholder = "Paper title of your choice"
|
|
@@ -14,10 +14,10 @@ text_input = st.text_input(
|
|
| 14 |
|
| 15 |
print(text_input)
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
# Calculating the similarity between titles
|
| 20 |
-
cosine_scores = util.cos_sim(embeddings, model.encode(paper_you_like))
|
| 21 |
|
| 22 |
-
print(cosine_scores)
|
| 23 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import pickle
|
| 3 |
+
import pandas
|
| 4 |
|
| 5 |
|
| 6 |
+
# from sentence_transformers import SentenceTransformer, util
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
+
st.title('Arxiv Paper Recommendation')
|
| 10 |
text_input = st.text_input(
|
| 11 |
"Enter the title of any paper you like 👇",
|
| 12 |
placeholder = "Paper title of your choice"
|
|
|
|
| 14 |
|
| 15 |
print(text_input)
|
| 16 |
|
| 17 |
+
|
| 18 |
|
| 19 |
# Calculating the similarity between titles
|
| 20 |
+
# cosine_scores = util.cos_sim(embeddings, model.encode(paper_you_like))
|
| 21 |
|
| 22 |
+
# print(cosine_scores)
|
| 23 |
|