Update app.py
Browse files
app.py
CHANGED
|
@@ -105,6 +105,10 @@ def ask_ds(message, history):
|
|
| 105 |
if len(message) == 0:
|
| 106 |
yield None
|
| 107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
if authenticated == False:
|
| 109 |
divisions = {'1': 'ime', '2': 'pas', '3': 'peer disability'}
|
| 110 |
if division == None:
|
|
@@ -230,5 +234,5 @@ def ask_ds(message, history):
|
|
| 230 |
bedrock_client = create_bedrock_client()
|
| 231 |
s3_client = create_s3_client()
|
| 232 |
|
| 233 |
-
demo = gr.ChatInterface(fn=ask_ds, title="Ask DS", multimodal=False, chatbot=gr.Chatbot(value=[(None, "
|
| 234 |
demo.launch()
|
|
|
|
| 105 |
if len(message) == 0:
|
| 106 |
yield None
|
| 107 |
|
| 108 |
+
if message == 'admin_reset'
|
| 109 |
+
authenticated = False
|
| 110 |
+
yield "Select your division:\n[1] IME \n[2] PAS\n[3] Peer Disability"
|
| 111 |
+
|
| 112 |
if authenticated == False:
|
| 113 |
divisions = {'1': 'ime', '2': 'pas', '3': 'peer disability'}
|
| 114 |
if division == None:
|
|
|
|
| 234 |
bedrock_client = create_bedrock_client()
|
| 235 |
s3_client = create_s3_client()
|
| 236 |
|
| 237 |
+
demo = gr.ChatInterface(fn=ask_ds, title="Ask DS", multimodal=False, chatbot=gr.Chatbot(value=[(None, "Please select your division:\n[1] IME \n[2] PAS\n[3] Peer Disability")],),theme=theme)
|
| 238 |
demo.launch()
|