Spaces:
Running
Running
Commit
·
c38ba9f
1
Parent(s):
215cbc3
test now
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
ner = [
|
7 |
{
|
8 |
'start': 11,
|
9 |
-
'end':
|
10 |
'text': 'Home Visits Survey',
|
11 |
'label': 'named dataset',
|
12 |
'score': 0.9947463870048523
|
@@ -54,7 +54,7 @@ def get_model_predictions():
|
|
54 |
return json.dumps({"ner": ner, "relations": relations}, indent=2)
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
-
gr.Markdown("##
|
58 |
"Edit the sample text, then click **Highlight** to annotate entities, or **Get Model Predictions** to see the raw JSON.")
|
59 |
|
60 |
txt_in = gr.Textbox(label="Input Text", lines=4, value=SAMPLE_TEXT)
|
|
|
6 |
ner = [
|
7 |
{
|
8 |
'start': 11,
|
9 |
+
'end': 29,
|
10 |
'text': 'Home Visits Survey',
|
11 |
'label': 'named dataset',
|
12 |
'score': 0.9947463870048523
|
|
|
54 |
return json.dumps({"ner": ner, "relations": relations}, indent=2)
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
+
gr.Markdown("## Data Use Detector\n"
|
58 |
"Edit the sample text, then click **Highlight** to annotate entities, or **Get Model Predictions** to see the raw JSON.")
|
59 |
|
60 |
txt_in = gr.Textbox(label="Input Text", lines=4, value=SAMPLE_TEXT)
|