Adityadn commited on
Commit
6326306
·
verified ·
1 Parent(s): 4efcd2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -9,16 +9,16 @@ def analyze_text(text):
9
  if text == "":
10
  result = "MASUKKIN TEKS GOBLOK"
11
  elif text != "":
12
- if text != "I Love You" or "Ilopyu" or "I <3 U" or "Ai lof yu" or "Lop yu" or "ah":
13
  result = f"You memasukkan teks: {text}"
14
- elif text == "I Love You" or "Ilopyu" or "I <3 U" or "Ai lof yu" or "Lop yu":
15
  result = "Love you too...."
16
- elif text == "Ah":
17
- result = "Kamu sangean"
18
  else:
19
- result = "Apa sih!"
20
  else:
21
- result = "Ada yang error nih"
22
  return result
23
 
24
  iface = gr.Interface(
 
9
  if text == "":
10
  result = "MASUKKIN TEKS GOBLOK"
11
  elif text != "":
12
+ if text != ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu", "Ah", "Ahh"]:
13
  result = f"You memasukkan teks: {text}"
14
+ elif text == ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]:
15
  result = "Love you too...."
16
+ elif text == ["Ah", "Ahh"]:
17
+ result = "You is sangean"
18
  else:
19
+ result = "What sih!"
20
  else:
21
+ result = "This is error nih"
22
  return result
23
 
24
  iface = gr.Interface(