Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -63,13 +63,15 @@ with gr.Blocks(title="Textile Machinery NER Demo") as demo:
|
|
63 |
placeholder="Enter your text here",
|
64 |
lines=5
|
65 |
)
|
66 |
-
|
|
|
|
|
67 |
# Use HighlightedText to show the entities
|
68 |
output_highlighted = gr.HighlightedText(label="Predicted Entities")
|
69 |
output_entities = gr.JSON(label="Entities")
|
70 |
|
71 |
submit_btn = gr.Button("Find Textile Machinery!")
|
72 |
-
|
73 |
|
74 |
refresh_btn.click(fn=get_new_snippet, outputs=input_text)
|
75 |
|
|
|
63 |
placeholder="Enter your text here",
|
64 |
lines=5
|
65 |
)
|
66 |
+
|
67 |
+
refresh_btn = gr.Button("Get New Snippet")
|
68 |
+
|
69 |
# Use HighlightedText to show the entities
|
70 |
output_highlighted = gr.HighlightedText(label="Predicted Entities")
|
71 |
output_entities = gr.JSON(label="Entities")
|
72 |
|
73 |
submit_btn = gr.Button("Find Textile Machinery!")
|
74 |
+
|
75 |
|
76 |
refresh_btn.click(fn=get_new_snippet, outputs=input_text)
|
77 |
|