File size: 524 Bytes
4691065 c6ba141 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 |
print("Wait..")
import gradio as gr
def analyze_text(text):
# Lakukan analisis atau pemrosesan teks di sini
if text == "":
result = "MASUKKIN TEKS GOBLOK"
elif text == "I Love You" or "Ilopyu" or "Ai lof yu" or "Lop yu":
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() |