Spaces:
Runtime error
Runtime error
update display
Browse files
app.py
CHANGED
|
@@ -46,8 +46,8 @@ def get_similar_links(query, db, embeddings):
|
|
| 46 |
embedding_vector = get_hugging_face_model()
|
| 47 |
db = FAISS.load_local("code_sim_index", embedding_vector, allow_dangerous_deserialization=True)
|
| 48 |
|
| 49 |
-
st.title("
|
| 50 |
-
text_input = st.text_area("Enter a Code Example", value =
|
| 51 |
"""
|
| 52 |
class Solution:
|
| 53 |
def subsets(self, nums: List[int]) -> List[List[int]]:
|
|
@@ -74,8 +74,3 @@ if button:
|
|
| 74 |
else:
|
| 75 |
st.info("Please Input Valid Text")
|
| 76 |
|
| 77 |
-
st.markdown("""
|
| 78 |
-
### Created by Ashwin Rachha.
|
| 79 |
-
""")
|
| 80 |
-
st.markdown("Source Data : https://github.com/AshwinRachha/LeetCode-Solutions")
|
| 81 |
-
st.markdown("Medium Blog : https://medium.com/@ashwin_rachha/querying-a-code-database-to-find-similar-coding-problems-using-langchain-814730da6e6d")
|
|
|
|
| 46 |
embedding_vector = get_hugging_face_model()
|
| 47 |
db = FAISS.load_local("code_sim_index", embedding_vector, allow_dangerous_deserialization=True)
|
| 48 |
|
| 49 |
+
st.title("Find Similar Code")
|
| 50 |
+
text_input = st.text_area("Enter a Code Example", value =
|
| 51 |
"""
|
| 52 |
class Solution:
|
| 53 |
def subsets(self, nums: List[int]) -> List[List[int]]:
|
|
|
|
| 74 |
else:
|
| 75 |
st.info("Please Input Valid Text")
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|