Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,11 @@ def analyze_text(text):
|
|
11 |
if text:
|
12 |
if text == "":
|
13 |
result = "MASUKKIN THE TEXT IDIOT"
|
14 |
-
elif text
|
15 |
result = "Love you too...."
|
16 |
-
elif text
|
17 |
result = "You is sangean"
|
18 |
-
elif text
|
19 |
result = "GAJELAS IDIOT"
|
20 |
else:
|
21 |
result = f"You memasukkan text: {text}"
|
|
|
11 |
if text:
|
12 |
if text == "":
|
13 |
result = "MASUKKIN THE TEXT IDIOT"
|
14 |
+
elif text.startswith(tuple(lopek)) or text.endswith(tuple(lopek)):
|
15 |
result = "Love you too...."
|
16 |
+
elif text.startswith(tuple(sangean)) or text.endswith(tuple(sangean)):
|
17 |
result = "You is sangean"
|
18 |
+
elif text.startswith(tuple(gajelas)) or text.endswith(tuple(gajelas)): #contoh pengguna memasukkan HALO! maka dijawab pakai ini:
|
19 |
result = "GAJELAS IDIOT"
|
20 |
else:
|
21 |
result = f"You memasukkan text: {text}"
|