Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,10 @@ def similarity_search2(vectordb, query, k, unique="True"):
|
|
27 |
return str(np.array(temp))[1:-1]
|
28 |
|
29 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
30 |
query = gr.Textbox(placeholder="your query", label="Query")
|
31 |
k = gr.Slider(10,1000,5, label="number of samples to check")
|
32 |
unique = gr.Radio(["True", "False"], label="Return Unique values")
|
@@ -51,4 +55,4 @@ with gr.Blocks() as demo:
|
|
51 |
|
52 |
# interface = gr.Interface(fn=auto_eda, inputs="dataframe", outputs="json")
|
53 |
# demo.queue()
|
54 |
-
demo.launch(
|
|
|
27 |
return str(np.array(temp))[1:-1]
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
+
gr.Markdown(
|
31 |
+
"""
|
32 |
+
<h2> <center> Query Retrieval </center> </h2>
|
33 |
+
""")
|
34 |
query = gr.Textbox(placeholder="your query", label="Query")
|
35 |
k = gr.Slider(10,1000,5, label="number of samples to check")
|
36 |
unique = gr.Radio(["True", "False"], label="Return Unique values")
|
|
|
55 |
|
56 |
# interface = gr.Interface(fn=auto_eda, inputs="dataframe", outputs="json")
|
57 |
# demo.queue()
|
58 |
+
demo.launch()
|