Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ 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
|
14 |
title="Middle Earth Tales",
|
15 |
).launch()
|
|
|
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,
|
14 |
title="Middle Earth Tales",
|
15 |
).launch()
|