Zeitstaub commited on
Commit
e67b889
1 Parent(s): 27b623c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="Chose 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.Textbox(label="top 5 patent abstracts (if available)")
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