Spaces:
Sleeping
Sleeping
add models
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def predict (Word, Sentence, LM, Layer, Norm):
|
|
| 30 |
pred_list = pred.detach().numpy().tolist()
|
| 31 |
|
| 32 |
output = [labels[i]+'\t'+str(pred_list[i]) for i in range(len(labels)) if i > 0.0]
|
| 33 |
-
return "\n".join(output)
|
| 34 |
|
| 35 |
demo = gr.Interface(
|
| 36 |
fn=predict,
|
|
|
|
| 30 |
pred_list = pred.detach().numpy().tolist()
|
| 31 |
|
| 32 |
output = [labels[i]+'\t'+str(pred_list[i]) for i in range(len(labels)) if i > 0.0]
|
| 33 |
+
return "All Positive Predicted Values:\n"+"\n".join(output)
|
| 34 |
|
| 35 |
demo = gr.Interface(
|
| 36 |
fn=predict,
|