Spaces:
Running
Running
Update: Text
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def predict(review: str):
|
|
| 97 |
# Abort if text is not english
|
| 98 |
if not review_is_eng:
|
| 99 |
# immer zwei Outputs zurückgeben
|
| 100 |
-
return "
|
| 101 |
"is_eng": review_is_eng,
|
| 102 |
"prob": review_lang_prob
|
| 103 |
}
|
|
@@ -152,7 +152,7 @@ with gr.Blocks() as demo:
|
|
| 152 |
with gr.Row(): # alles nebeneinander
|
| 153 |
with gr.Column(scale=1): # linke Seite: Input
|
| 154 |
review_box = gr.Textbox(
|
| 155 |
-
label="Whisky Review",
|
| 156 |
lines=8,
|
| 157 |
placeholder="Enter whisky review",
|
| 158 |
value=random.choice(EXAMPLES),
|
|
|
|
| 97 |
# Abort if text is not english
|
| 98 |
if not review_is_eng:
|
| 99 |
# immer zwei Outputs zurückgeben
|
| 100 |
+
return "Currently, only English reviews are supported.", {
|
| 101 |
"is_eng": review_is_eng,
|
| 102 |
"prob": review_lang_prob
|
| 103 |
}
|
|
|
|
| 152 |
with gr.Row(): # alles nebeneinander
|
| 153 |
with gr.Column(scale=1): # linke Seite: Input
|
| 154 |
review_box = gr.Textbox(
|
| 155 |
+
label="Whisky Review (English only)",
|
| 156 |
lines=8,
|
| 157 |
placeholder="Enter whisky review",
|
| 158 |
value=random.choice(EXAMPLES),
|