Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ from typing import List, Optional, Any
|
|
9 |
|
10 |
import argilla as rg
|
11 |
|
|
|
|
|
|
|
|
|
12 |
nlp = pipeline("ner", model="deprem-ml/deprem-ner")
|
13 |
|
14 |
examples = [
|
@@ -64,8 +68,8 @@ gr.Interface.load(
|
|
64 |
examples=examples,
|
65 |
allow_flagging="manual",
|
66 |
flagging_callback=ArgillaLogger(
|
67 |
-
api_url="https://
|
68 |
-
api_key=
|
69 |
dataset_name="ner-flags"
|
70 |
),
|
71 |
flagging_options=["Correct", "Incorrect", "Ambiguous"]
|
|
|
9 |
|
10 |
import argilla as rg
|
11 |
|
12 |
+
import os
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
nlp = pipeline("ner", model="deprem-ml/deprem-ner")
|
17 |
|
18 |
examples = [
|
|
|
68 |
examples=examples,
|
69 |
allow_flagging="manual",
|
70 |
flagging_callback=ArgillaLogger(
|
71 |
+
api_url="https://merve-ner-flagging.hf.space",
|
72 |
+
api_key=os.getenv("API_KEY"),
|
73 |
dataset_name="ner-flags"
|
74 |
),
|
75 |
flagging_options=["Correct", "Incorrect", "Ambiguous"]
|