Alien-Y commited on
Commit
b56f3d1
·
1 Parent(s): 35fed64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ else:
37
 
38
  idk = ['عذراً، لا يمكنني الإجابة عن السؤال المطروح', 'عذراً، لم أفهم سؤالك']
39
  if result[0][np.argmax(result)] < 0.75: # if perplexity is high
40
- return np.random.choice(idk)
41
 
42
  tag = lbl_encoder.inverse_transform([np.argmax(result)])
43
 
 
37
 
38
  idk = ['عذراً، لا يمكنني الإجابة عن السؤال المطروح', 'عذراً، لم أفهم سؤالك']
39
  if result[0][np.argmax(result)] < 0.75: # if perplexity is high
40
+ st.write(np.random.choice(idk))
41
 
42
  tag = lbl_encoder.inverse_transform([np.argmax(result)])
43