Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,12 +4,12 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
def analyze_text(text):
|
| 6 |
# Lakukan analisis atau pemrosesan teks di sini
|
| 7 |
-
if text
|
| 8 |
-
result =
|
| 9 |
elif text == "I Love You" or "Ilopyu" or "Ai lof yu" or "Lop yu":
|
| 10 |
result = "Love you too...."
|
| 11 |
else:
|
| 12 |
-
result = "
|
| 13 |
return result
|
| 14 |
|
| 15 |
iface = gr.Interface(
|
|
|
|
| 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 == "I Love You" or "Ilopyu" or "Ai lof yu" or "Lop yu":
|
| 10 |
result = "Love you too...."
|
| 11 |
else:
|
| 12 |
+
result = f"Anda memasukkan teks: {text}"
|
| 13 |
return result
|
| 14 |
|
| 15 |
iface = gr.Interface(
|