Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,17 +3,21 @@ print("Wait..")
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
lopek = ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def analyze_text(text):
|
| 8 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 9 |
if text == "":
|
| 10 |
result = "MASUKKIN THE TEXT IDIOT"
|
| 11 |
elif text != "":
|
| 12 |
-
if text !=
|
|
|
|
|
|
|
| 13 |
result = f"You memasukkan text: {text}"
|
| 14 |
elif text == lopek:
|
| 15 |
result = "Love you too...."
|
| 16 |
-
elif text ==
|
| 17 |
result = "You is sangean"
|
| 18 |
else:
|
| 19 |
result = "What sih!"
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
lopek = ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]
|
| 6 |
+
sangean = ["Ah", "Ahh"]
|
| 7 |
+
gajelas = ["`", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", "0", "-", "_", "=", "+", "[", "{", "]", "}", ";", ':', "'", ",", "<", ".", ">", "/", "?"]
|
| 8 |
|
| 9 |
def analyze_text(text):
|
| 10 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 11 |
if text == "":
|
| 12 |
result = "MASUKKIN THE TEXT IDIOT"
|
| 13 |
elif text != "":
|
| 14 |
+
if text != lopek:
|
| 15 |
+
result = f"You memasukkan text: {text}"
|
| 16 |
+
elif text != sangean:
|
| 17 |
result = f"You memasukkan text: {text}"
|
| 18 |
elif text == lopek:
|
| 19 |
result = "Love you too...."
|
| 20 |
+
elif text == sangean:
|
| 21 |
result = "You is sangean"
|
| 22 |
else:
|
| 23 |
result = "What sih!"
|