Embedding / app.py
Adityadn's picture
Update app.py
97a9af7 verified
raw
history blame
456 Bytes
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)