malek-messaoudii commited on
Commit
ad2dc28
·
1 Parent(s): 8a40c79

Update label.py

Browse files
Files changed (1) hide show
  1. models/label.py +15 -15
models/label.py CHANGED
@@ -9,8 +9,8 @@ class PredictionRequest(BaseModel):
9
  model_config = ConfigDict(
10
  json_schema_extra={
11
  "example": {
12
- "argument": "Climate change is accelerating due to industrial emissions.",
13
- "key_point": "Human industry contributes significantly to global warming."
14
  }
15
  }
16
  )
@@ -31,11 +31,11 @@ class PredictionResponse(BaseModel):
31
  json_schema_extra={
32
  "example": {
33
  "prediction": 1,
34
- "confidence": 0.874,
35
  "label": "apparie",
36
  "probabilities": {
37
- "non_apparie": 0.126,
38
- "apparie": 0.874
39
  }
40
  }
41
  }
@@ -57,24 +57,24 @@ class BatchPredictionRequest(BaseModel):
57
  "example": {
58
  "pairs": [
59
  {
60
- "argument": "School uniforms limit students' self-expression and creativity",
61
- "key_point": "Uniforms restrict personal freedom and individuality"
62
  },
63
  {
64
- "argument": "Renewable energy creates more jobs than fossil fuel industries",
65
- "key_point": "Green energy generates employment opportunities"
66
  },
67
  {
68
- "argument": "We should invest more in renewable energy to combat climate change",
69
- "key_point": "Capital punishment violates human rights"
70
  },
71
  {
72
- "argument": "Online education provides flexibility and accessibility for all students",
73
- "key_point": "Digital learning offers convenient and inclusive education"
74
  },
75
  {
76
- "argument": "Vaccinations are essential for public health and disease prevention",
77
- "key_point": "Space exploration leads to scientific discoveries"
78
  }
79
  ]
80
  }
 
9
  model_config = ConfigDict(
10
  json_schema_extra={
11
  "example": {
12
+ "argument": "School uniforms limit students' creativity",
13
+ "key_point": "Uniforms restrict personal freedom"
14
  }
15
  }
16
  )
 
31
  json_schema_extra={
32
  "example": {
33
  "prediction": 1,
34
+ "confidence": 0.956,
35
  "label": "apparie",
36
  "probabilities": {
37
+ "non_apparie": 0.044,
38
+ "apparie": 0.956
39
  }
40
  }
41
  }
 
57
  "example": {
58
  "pairs": [
59
  {
60
+ "argument": "Students should wear school uniforms",
61
+ "key_point": "School uniforms are good for students"
62
  },
63
  {
64
+ "argument": "We need more renewable energy",
65
+ "key_point": "Solar and wind power are important"
66
  },
67
  {
68
+ "argument": "Education should be free for everyone",
69
+ "key_point": "Cars should be electric"
70
  },
71
  {
72
+ "argument": "Exercise improves health",
73
+ "key_point": "Physical activity is good for the body"
74
  },
75
  {
76
+ "argument": "Reading books helps learning",
77
+ "key_point": "We should build more parks"
78
  }
79
  ]
80
  }