Update app.py
Browse files
app.py
CHANGED
@@ -61,12 +61,12 @@ with gr.Blocks() as demo:
|
|
61 |
gr.Markdown("## Sentence-Transformer based AI-Generated-Patent-Abstract Search")
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
-
model_selector = gr.Dropdown(choices=list(model_options.keys()), label="
|
65 |
-
text_input = gr.Textbox(lines=2, placeholder="machine learning for drug dosing", label="
|
66 |
-
submit_button = gr.Button("
|
67 |
|
68 |
with gr.Column():
|
69 |
-
output = gr.
|
70 |
|
71 |
submit_button.click(find_similar_texts, inputs=[model_selector, text_input], outputs=output)
|
72 |
|
|
|
61 |
gr.Markdown("## Sentence-Transformer based AI-Generated-Patent-Abstract Search")
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
+
model_selector = gr.Dropdown(choices=list(model_options.keys()), label="Choose Sentence-Transformer")
|
65 |
+
text_input = gr.Textbox(lines=2, placeholder="machine learning for drug dosing", label="Input Text (example: machine learning for drug dosing. Remark: This is only a small number of AI generated machine learning patents!)")
|
66 |
+
submit_button = gr.Button("Search")
|
67 |
|
68 |
with gr.Column():
|
69 |
+
output = gr.HTML(label="Top 5 Patent Abstracts")
|
70 |
|
71 |
submit_button.click(find_similar_texts, inputs=[model_selector, text_input], outputs=output)
|
72 |
|