Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def translate(text):
|
|
8 |
return {p["label"]: p["score"] for p in predictions}
|
9 |
|
10 |
gr.Interface(
|
11 |
-
predict,
|
12 |
inputs=gr.inputs.Text(label="text", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
title="Middle Earth Tales",
|
|
|
8 |
return {p["label"]: p["score"] for p in predictions}
|
9 |
|
10 |
gr.Interface(
|
11 |
+
predict = predict,
|
12 |
inputs=gr.inputs.Text(label="text", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
title="Middle Earth Tales",
|