Prajjwal888 commited on
Commit
fe69c7b
·
1 Parent(s): 605e349

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ def predict_review(text):
10
  label = result['label']
11
  score = result['score']
12
 
13
- if label == "AI":
14
- rating = random.randint(1, 6)
15
  else:
16
  rating = random.randint(7, 10)
17
 
 
10
  label = result['label']
11
  score = result['score']
12
 
13
+ if label == "LABEL_0":
14
+ rating = random.randint(1, 4)
15
  else:
16
  rating = random.randint(7, 10)
17