Update app.py
Browse files
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 |
-
|
| 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 |
|