File size: 418 Bytes
4691065
 
 
 
 
 
af4cf72
 
 
 
4691065
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
print("Wait..")

import gradio as gr

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

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

iface.launch()