merve HF staff commited on
Commit
6bd075e
β€’
1 Parent(s): 495bb87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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://dvilasuero-argilla-template-1-3.hf.space",
68
- api_key="team.apikey",
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"]