import gradio as gr from gradio_client import Client def Prediction(): client = Client("Adityadn/Test") result = client.predict( text, # str in 'text' Textbox component api_name="/predict" ) iface = gr.Interface( fn=Prediction, inputs=gr.Textbox(show_copy_button=True), # Menggunakan input textbox outputs=gr.Textbox(type="text",show_copy_button=True) # Menetapkan output ke tipe teks ) iface.launch(show_api=False)