Adityadn commited on
Commit
73f03fe
·
verified ·
1 Parent(s): 63cbb11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,18 +1,19 @@
1
  import gradio as gr
2
 
3
- lopek = ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]
4
- sangean = ["Ah", "Ahh"]
5
  gajelas = ["`", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", "0", "-", "_", "=", "+", "[", "{", "]", "}", ";", ':', "'", ",", "<", ".", ">", "/", "?"]
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 in lopek:
12
  result = "Love you too...."
13
  elif text in sangean:
14
  result = "You is sangean"
15
- elif text in gajelas:
16
  result = "GAJELAS IDIOT"
17
  else:
18
  result = f"You memasukkan text: {text}"
 
1
  import gradio as gr
2
 
3
+ lopek = ["i love you", "ilopyu", "i <3 u", "ai lof yu", "lop yu"]
4
+ sangean = ["ah", "ahh"]
5
  gajelas = ["`", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", "0", "-", "_", "=", "+", "[", "{", "]", "}", ";", ':', "'", ",", "<", ".", ">", "/", "?"]
6
 
7
  def analyze_text(text):
8
  # Lakukan analisis atau pemrosesan teks di sini
9
+ text.lower()
10
  if text == "":
11
  result = "MASUKKIN THE TEXT IDIOT"
12
  elif text in lopek:
13
  result = "Love you too...."
14
  elif text in sangean:
15
  result = "You is sangean"
16
+ elif text == gajelas:
17
  result = "GAJELAS IDIOT"
18
  else:
19
  result = f"You memasukkan text: {text}"