import gradio as gr from gradio_client import Client def Prediction(text): client = Client("Adityadn/Test") result = client.predict( text, # Menggunakan teks yang dimasukkan pengguna api_name="/predict" ) return result iface = gr.Interface( fn=Prediction, inputs=gr.Textbox(label="Input", placeholder="Enter Text Here", show_copy_button=True), # Menggunakan input textbox dengan label dan tombol salin outputs=gr.Textbox(type="text", label="Output", show_copy_button=True) ) iface.launch(show_api=False)