Update app.py
Browse files
app.py
CHANGED
@@ -404,7 +404,15 @@ with gr.Blocks() as demo:
|
|
404 |
gr.Number(0.5, label="confidence threshold", show_label=True, minimum=0., maximum=1.0, step=0.1),
|
405 |
gr.Checkbox(label="multiple", info="Allow multiple request code numbers"),
|
406 |
|
407 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
)
|
409 |
|
410 |
if __name__ == "__main__":
|
|
|
404 |
gr.Number(0.5, label="confidence threshold", show_label=True, minimum=0., maximum=1.0, step=0.1),
|
405 |
gr.Checkbox(label="multiple", info="Allow multiple request code numbers"),
|
406 |
|
407 |
+
],
|
408 |
+
type="messages",
|
409 |
+
chatbot=gr.Chatbot(height=800),
|
410 |
+
# textbox=gr.Textbox(placeholder="Ask me a yes or no question", container=False, scale=7),
|
411 |
+
title="SamSat Virtual Assistant",
|
412 |
+
# description="Ask Yes Man any question",
|
413 |
+
# theme="soft",
|
414 |
+
examples=[{"text": "balik nama D 3456 DEF"}, {"text": "bayar pajak B 1234 BCA"}, {"text": "halo, selamat pagi!"}],
|
415 |
+
cache_examples=True,
|
416 |
)
|
417 |
|
418 |
if __name__ == "__main__":
|