Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,22 @@ def get_similar_links(query, db, embeddings):
|
|
45 |
embedding_vector = get_hugging_face_model()
|
46 |
db = get_db()
|
47 |
st.title("📒 DSASearch Engine 🤖 ")
|
48 |
-
text_input = st.text_input("Enter some text"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
button = st.button("Find Similar Questions on Leetcode")
|
50 |
if text_input:
|
51 |
query = text_input
|
@@ -58,7 +73,7 @@ else:
|
|
58 |
st.info("Please Input Valid Text")
|
59 |
|
60 |
st.markdown("""
|
61 |
-
|
62 |
-
Source Data : https://github.com/AshwinRachha/LeetCode-Solutions
|
63 |
-
Medium Blog : https://medium.com/@ashwin_rachha/querying-a-code-database-to-find-similar-coding-problems-using-langchain-814730da6e6d
|
64 |
""")
|
|
|
45 |
embedding_vector = get_hugging_face_model()
|
46 |
db = get_db()
|
47 |
st.title("📒 DSASearch Engine 🤖 ")
|
48 |
+
text_input = st.text_input("Enter some text", value =
|
49 |
+
"""
|
50 |
+
class Solution:
|
51 |
+
def subsets(self, nums: List[int]) -> List[List[int]]:
|
52 |
+
outputs = []
|
53 |
+
def backtrack(k, index, subSet):
|
54 |
+
if index == k:
|
55 |
+
outputs.append(subSet[:])
|
56 |
+
return
|
57 |
+
for i in range(index, len(nums)):
|
58 |
+
backtrack(k, i + 1, subSet + [nums[i]])
|
59 |
+
for j in range(len(nums) + 1):
|
60 |
+
backtrack(j, 0, [])
|
61 |
+
return outputs
|
62 |
+
"""
|
63 |
+
)
|
64 |
button = st.button("Find Similar Questions on Leetcode")
|
65 |
if text_input:
|
66 |
query = text_input
|
|
|
73 |
st.info("Please Input Valid Text")
|
74 |
|
75 |
st.markdown("""
|
76 |
+
## Created by Ashwin Rachha.<br />
|
77 |
+
Source Data : https://github.com/AshwinRachha/LeetCode-Solutions<br />
|
78 |
+
Medium Blog : https://medium.com/@ashwin_rachha/querying-a-code-database-to-find-similar-coding-problems-using-langchain-814730da6e6d<br />
|
79 |
""")
|