CarlosMF HF staff commited on
Commit
4615d0c
1 Parent(s): ac52d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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",