Spaces:
Sleeping
Sleeping
Fix none type
Browse files
app.py
CHANGED
|
@@ -403,7 +403,7 @@ else:
|
|
| 403 |
def is_symtoms_intext_ai(text_input:str)->str: #used instead of: analyze_symptoms_from_text_ai()
|
| 404 |
"""Gives Symptoms or "" if no symptoms """
|
| 405 |
response_text=analyze_symptoms_from_text_ai(text_input)
|
| 406 |
-
if len(response_text)>2:
|
| 407 |
if "error" not in response_text.lower():
|
| 408 |
return response_text
|
| 409 |
return ""
|
|
|
|
| 403 |
def is_symtoms_intext_ai(text_input:str)->str: #used instead of: analyze_symptoms_from_text_ai()
|
| 404 |
"""Gives Symptoms or "" if no symptoms """
|
| 405 |
response_text=analyze_symptoms_from_text_ai(text_input)
|
| 406 |
+
if response_text and len(response_text)>2:
|
| 407 |
if "error" not in response_text.lower():
|
| 408 |
return response_text
|
| 409 |
return ""
|