Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def detect_language(text):
|
|
31 |
"""Detect the language of the input text, with special handling for Roman Urdu."""
|
32 |
try:
|
33 |
if ROMAN_URDU_PATTERN.search(text):
|
34 |
-
return "
|
35 |
return detect(text)
|
36 |
except:
|
37 |
return "en" # Default to English if detection fails
|
@@ -68,7 +68,7 @@ def translate_text(text, target_lang):
|
|
68 |
|
69 |
# 🎨 Streamlit UI
|
70 |
st.set_page_config(page_title="Homeo Doctor AI", page_icon="🌿")
|
71 |
-
st.title("🌍 AI-Powered Homeopathic Doctor")
|
72 |
|
73 |
# Chat interface
|
74 |
if "messages" not in st.session_state:
|
|
|
31 |
"""Detect the language of the input text, with special handling for Roman Urdu."""
|
32 |
try:
|
33 |
if ROMAN_URDU_PATTERN.search(text):
|
34 |
+
return "roman_ur" # Detect Roman Urdu correctly
|
35 |
return detect(text)
|
36 |
except:
|
37 |
return "en" # Default to English if detection fails
|
|
|
68 |
|
69 |
# 🎨 Streamlit UI
|
70 |
st.set_page_config(page_title="Homeo Doctor AI", page_icon="🌿")
|
71 |
+
st.title("🌍 AI-Powered Homeopathic Doctor in your Language")
|
72 |
|
73 |
# Chat interface
|
74 |
if "messages" not in st.session_state:
|