Spaces:
Sleeping
Sleeping
JDFPalladium commited on
Commit ·
3b24ccb
1
Parent(s): 35274a7
fixing linting issues
Browse files- app.py +1 -1
- chatlib/idsr_definition.py +1 -1
app.py
CHANGED
|
@@ -258,7 +258,7 @@ with gr.Blocks() as app:
|
|
| 258 |
inputs=[question_input, id_selected, sitecode_selection, thread_id_state],
|
| 259 |
outputs=[output_chat, thread_id_state, retrieved_sources_display, question_input, chat_history_display],
|
| 260 |
)
|
| 261 |
-
|
| 262 |
question_input.submit(
|
| 263 |
chat_with_patient,
|
| 264 |
inputs=[question_input, id_selected, sitecode_selection, thread_id_state],
|
|
|
|
| 258 |
inputs=[question_input, id_selected, sitecode_selection, thread_id_state],
|
| 259 |
outputs=[output_chat, thread_id_state, retrieved_sources_display, question_input, chat_history_display],
|
| 260 |
)
|
| 261 |
+
# pylint: disable=no-member
|
| 262 |
question_input.submit(
|
| 263 |
chat_with_patient,
|
| 264 |
inputs=[question_input, id_selected, sitecode_selection, thread_id_state],
|
chatlib/idsr_definition.py
CHANGED
|
@@ -81,5 +81,5 @@ def idsr_define(query: str, llm) -> dict:
|
|
| 81 |
}
|
| 82 |
|
| 83 |
return {
|
| 84 |
-
"answer":
|
| 85 |
}
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
return {
|
| 84 |
+
"answer": "Sorry, no case definition was found for the selected disease."
|
| 85 |
}
|