Test / app.py
Adityadn's picture
Create app.py
4691065 verified
raw
history blame
345 Bytes
print("Wait..")
import gradio as gr
def analyze_text(text):
# Lakukan analisis atau pemrosesan teks di sini
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()