Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,13 @@ print("Wait..")
|
|
2 |
|
3 |
import gradio as gr
|
4 |
|
5 |
-
lopek = []
|
6 |
|
7 |
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"
|
12 |
result = "Love you too...."
|
13 |
else:
|
14 |
result = f"Anda memasukkan teks: {text}"
|
|
|
2 |
|
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 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 = f"Anda memasukkan teks: {text}"
|