Update app.py
Browse files
app.py
CHANGED
|
@@ -119,23 +119,32 @@ def gradio_ui():
|
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column(scale=7):
|
| 121 |
gr.Markdown(GR_MARKDOWN_TXT,elem_classes="full-width")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
with gr.Column(scale=7):
|
|
|
|
| 124 |
output_highlight = gr.HighlightedText(label="Tagged Entities")
|
| 125 |
|
| 126 |
|
| 127 |
-
with gr.Row():
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
input_text = gr.Textbox(label="Enter your text here", type='text', placeholder="Biomedical Input text", lines=8)
|
| 131 |
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
|
| 140 |
|
| 141 |
run_btn.click(
|
|
|
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column(scale=7):
|
| 121 |
gr.Markdown(GR_MARKDOWN_TXT,elem_classes="full-width")
|
| 122 |
+
input_text = gr.Textbox(label="Enter your text here", type='text', placeholder="Biomedical Input text", lines=8)
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
gr.Examples(
|
| 126 |
+
examples=[GR_TXT1, GR_TXT2],
|
| 127 |
+
inputs=[input_text],
|
| 128 |
+
label= "Example Biomedical texts to try"
|
| 129 |
+
)
|
| 130 |
+
run_btn = gr.Button("Submit Text", variant="primary")
|
| 131 |
|
| 132 |
with gr.Column(scale=7):
|
| 133 |
+
model_choice = gr.Dropdown(choices=list(MODEL_REGISTRY.keys()), label="Select a model for Inference")
|
| 134 |
output_highlight = gr.HighlightedText(label="Tagged Entities")
|
| 135 |
|
| 136 |
|
| 137 |
+
# with gr.Row():
|
| 138 |
+
# with gr.Column(scale=7):
|
| 139 |
+
# input_text = gr.Textbox(label="Enter your text here", type='text', placeholder="Biomedical Input text", lines=8)
|
|
|
|
| 140 |
|
| 141 |
|
| 142 |
+
# gr.Examples(
|
| 143 |
+
# examples=[GR_TXT1, GR_TXT2],
|
| 144 |
+
# inputs=[input_text],
|
| 145 |
+
# label= "Example Biomedical texts to try"
|
| 146 |
+
# )
|
| 147 |
+
# run_btn = gr.Button("Submit Text", variant="primary")
|
| 148 |
|
| 149 |
|
| 150 |
run_btn.click(
|