TA
commited on
Commit
·
4ba28c9
1
Parent(s):
c5ce7e0
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,8 @@ Expand your imagination and broaden your horizons with LLM. Welcome to **{TITLE}
|
|
| 81 |
chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
|
| 82 |
textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
|
| 83 |
|
| 84 |
-
|
| 85 |
|
|
|
|
| 86 |
|
| 87 |
-
|
|
|
|
| 81 |
chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
|
| 82 |
textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
|
| 83 |
|
| 84 |
+
chat_interface = gr.ChatInterface(test_preview_chatbot, chatbot=chatbot_preview, textbox=textbox_preview)
|
| 85 |
|
| 86 |
+
iface = gr.Interface(chat_interface, title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
|
| 87 |
|
| 88 |
+
iface.launch(share=True)
|