Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,12 @@ def analyze_text(text):
|
|
| 8 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 9 |
if text == "":
|
| 10 |
result = "MASUKKIN TEKS GOBLOK"
|
|
|
|
|
|
|
| 11 |
elif text == "I Love You" or "Ilopyu" or "I <3 U" or "Ai lof yu" or "Lop yu":
|
| 12 |
result = "Love you too...."
|
| 13 |
else:
|
| 14 |
-
result =
|
| 15 |
return result
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
|
|
|
| 8 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 9 |
if text == "":
|
| 10 |
result = "MASUKKIN TEKS GOBLOK"
|
| 11 |
+
elif text == text:
|
| 12 |
+
result = f"Anda memasukkan teks: {text}"
|
| 13 |
elif text == "I Love You" or "Ilopyu" or "I <3 U" or "Ai lof yu" or "Lop yu":
|
| 14 |
result = "Love you too...."
|
| 15 |
else:
|
| 16 |
+
result = "Ada yang error nih"
|
| 17 |
return result
|
| 18 |
|
| 19 |
iface = gr.Interface(
|