File size: 545 Bytes
4691065
 
 
 
82d6904
 
4691065
 
c6ba141
 
82d6904
47e5e7b
af4cf72
c6ba141
4691065
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
print("Wait..")

import gradio as gr

lopek = ["I Love You", "Ilopyu", "I <3 U", "Ai lof yu", "Lop yu"]

def analyze_text(text):
    # Lakukan analisis atau pemrosesan teks di sini
    if text == "":
        result = "MASUKKIN TEKS GOBLOK"
    elif text == lopek:
        result = "Love you too...."
    else:
        result = f"Anda memasukkan teks: {text}"
    return result

iface = gr.Interface(
    fn=analyze_text,
    inputs=gr.Textbox(),  # Menggunakan input textbox
    outputs="text"  # Menetapkan output ke tipe teks
)

iface.launch()