Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -336,7 +336,8 @@ def extract_addresses(response):
|
|
336 |
r'(\d{2}.*\sStreets)',
|
337 |
r'([A-Z].*\s\d{2},\sBirmingham,\sAL\s\d{5})',
|
338 |
r'([a-zA-Z]\s Birmingham)',
|
339 |
-
r'([a-zA-Z].*,\sBirmingham,\sAL)'
|
|
|
340 |
]
|
341 |
addresses = []
|
342 |
for pattern in address_patterns:
|
@@ -665,7 +666,7 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
665 |
|
666 |
gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
667 |
|
668 |
-
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!")
|
669 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
670 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
671 |
retriver_button = gr.Button("Retriever")
|
|
|
336 |
r'(\d{2}.*\sStreets)',
|
337 |
r'([A-Z].*\s\d{2},\sBirmingham,\sAL\s\d{5})',
|
338 |
r'([a-zA-Z]\s Birmingham)',
|
339 |
+
r'([a-zA-Z].*,\sBirmingham,\sAL)',
|
340 |
+
r'(^Birmingham,AL$)'
|
341 |
]
|
342 |
addresses = []
|
343 |
for pattern in address_patterns:
|
|
|
666 |
|
667 |
gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
668 |
|
669 |
+
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!",submit=None))
|
670 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
671 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
672 |
retriver_button = gr.Button("Retriever")
|