Spaces:
Sleeping
Sleeping
[Fix] AttributeError: module 'gradio' has no attribute 'inputs'
Browse files
app.py
CHANGED
|
@@ -30,12 +30,12 @@ explanation = "Supported languages are (20): arabic (ar), bulgarian (bg), german
|
|
| 30 |
|
| 31 |
app = gr.Interface(
|
| 32 |
fn=predict,
|
| 33 |
-
inputs=gr.
|
| 34 |
placeholder="What's the text you want to know the language for?",
|
| 35 |
label="Text",
|
| 36 |
lines=3,
|
| 37 |
),
|
| 38 |
-
outputs=gr.
|
| 39 |
title=title,
|
| 40 |
description=description,
|
| 41 |
examples=examples,
|
|
|
|
| 30 |
|
| 31 |
app = gr.Interface(
|
| 32 |
fn=predict,
|
| 33 |
+
inputs=gr.Textbox(
|
| 34 |
placeholder="What's the text you want to know the language for?",
|
| 35 |
label="Text",
|
| 36 |
lines=3,
|
| 37 |
),
|
| 38 |
+
outputs=gr.Label(num_top_classes=3, label="Your text is written in "),
|
| 39 |
title=title,
|
| 40 |
description=description,
|
| 41 |
examples=examples,
|