Update app.py
Browse files
app.py
CHANGED
@@ -7,4 +7,4 @@ def predict(frase):
|
|
7 |
pred, pred_idx, probs = learn.predict(frase)
|
8 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
9 |
|
10 |
-
gr.Interface(fn=predict,
|
|
|
7 |
pred, pred_idx, probs = learn.predict(frase)
|
8 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
9 |
|
10 |
+
gr.Interface(fn=predict, examples=['frase1.txt','frase2.txt2']).launch(share=False)
|