Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ labels = learner.dls.vocab
|
|
12 |
|
13 |
def predict(text):
|
14 |
pred, pred_idx, probs = learner.predict(text)
|
15 |
-
return {
|
16 |
|
17 |
# Create and launch the Gradio interface for text input
|
18 |
gr.Interface(
|
|
|
12 |
|
13 |
def predict(text):
|
14 |
pred, pred_idx, probs = learner.predict(text)
|
15 |
+
return {pred: float(probs[1])}
|
16 |
|
17 |
# Create and launch the Gradio interface for text input
|
18 |
gr.Interface(
|