Spaces:
Sleeping
Sleeping
File size: 461 Bytes
98cce0f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import os
from dataset_loader import load_dataset
if not os.path.isdir('agent_function'):
load_dataset()
import gradio as gr
from agent_function.agent import Agent
iface = gr.Interface(
fn=Agent().ask,
inputs=gr.components.Textbox(lines=7, label="Enter your text"),
outputs="text",
title="BNM Scam Awareness ChatBot",
description="""Learn how to protect yourself from scam with Bank Negara Malaysia."""
)
iface.launch(share=False) |