Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,8 @@ def generate_charts(ner_output_bin: dict) -> Tuple[go.Figure, np.ndarray]:
|
|
| 86 |
bin_sizes = list(entity_counts_bin.values())
|
| 87 |
|
| 88 |
bin_color_map = {
|
| 89 |
-
"External": "#00008B",
|
| 90 |
-
"Internal": "#8B0000"
|
| 91 |
}
|
| 92 |
|
| 93 |
bin_colors = [bin_color_map.get(label, "#FFFFFF") for label in bin_labels]
|
|
@@ -182,9 +182,10 @@ iface = gr.Interface(
|
|
| 182 |
inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Write about how your breakfast went or anything else that happened or might happen to you ..."),
|
| 183 |
outputs=[
|
| 184 |
gr.HighlightedText(label="Binary Sequence Classification",
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
|
|
|
| 188 |
),
|
| 189 |
gr.Plot(label="Binary SeqClass Entity Count Bar Chart"),
|
| 190 |
gr.Image(label="Entity Word Cloud")
|
|
|
|
| 86 |
bin_sizes = list(entity_counts_bin.values())
|
| 87 |
|
| 88 |
bin_color_map = {
|
| 89 |
+
"External": "#00008B",
|
| 90 |
+
"Internal": "#8B0000"
|
| 91 |
}
|
| 92 |
|
| 93 |
bin_colors = [bin_color_map.get(label, "#FFFFFF") for label in bin_labels]
|
|
|
|
| 182 |
inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Write about how your breakfast went or anything else that happened or might happen to you ..."),
|
| 183 |
outputs=[
|
| 184 |
gr.HighlightedText(label="Binary Sequence Classification",
|
| 185 |
+
bin_color_map = {
|
| 186 |
+
"External": "#00008B",
|
| 187 |
+
"Internal": "#8B0000"
|
| 188 |
+
}
|
| 189 |
),
|
| 190 |
gr.Plot(label="Binary SeqClass Entity Count Bar Chart"),
|
| 191 |
gr.Image(label="Entity Word Cloud")
|