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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = predict,
12
  inputs=gr.inputs.Text(label="text", type="filepath"),
13
- outputs=gr.outputs.Label(num_top_classes=2),
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()