Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,16 @@ def analyze_text(text):
|
|
9 |
if text == "":
|
10 |
result = "MASUKKIN TEKS GOBLOK"
|
11 |
elif text != "":
|
12 |
-
if text != "I Love You"
|
13 |
result = f"You memasukkan teks: {text}"
|
14 |
-
elif text == "I Love You"
|
15 |
result = "Love you too...."
|
16 |
-
elif text == "Ah":
|
17 |
-
result = "
|
18 |
else:
|
19 |
-
result = "
|
20 |
else:
|
21 |
-
result = "
|
22 |
return result
|
23 |
|
24 |
iface = gr.Interface(
|
|
|
9 |
if text == "":
|
10 |
result = "MASUKKIN TEKS GOBLOK"
|
11 |
elif text != "":
|
12 |
+
if text != ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu", "Ah", "Ahh"]:
|
13 |
result = f"You memasukkan teks: {text}"
|
14 |
+
elif text == ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]:
|
15 |
result = "Love you too...."
|
16 |
+
elif text == ["Ah", "Ahh"]:
|
17 |
+
result = "You is sangean"
|
18 |
else:
|
19 |
+
result = "What sih!"
|
20 |
else:
|
21 |
+
result = "This is error nih"
|
22 |
return result
|
23 |
|
24 |
iface = gr.Interface(
|