Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,13 @@ print("Wait..")
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
|
|
|
| 5 |
def analyze_text(text):
|
| 6 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 7 |
if text == "":
|
| 8 |
result = "MASUKKIN TEKS GOBLOK"
|
| 9 |
-
elif text ==
|
| 10 |
result = "Love you too...."
|
| 11 |
else:
|
| 12 |
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 == lopek:
|
| 12 |
result = "Love you too...."
|
| 13 |
else:
|
| 14 |
result = f"Anda memasukkan teks: {text}"
|