Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ if uploaded_file:
|
|
185 |
|
186 |
Your tasks:
|
187 |
|
188 |
-
1. Identify and list only the
|
189 |
2. For each identified medicine, provide the following:
|
190 |
- Dosage and Timing
|
191 |
- Possible Side Effects
|
@@ -261,7 +261,7 @@ if uploaded_file:
|
|
261 |
|
262 |
|
263 |
|
264 |
-
if
|
265 |
with st.spinner("Translating to Hindi..."):
|
266 |
try:
|
267 |
hindi_text = GoogleTranslator(source='en', target='hi').translate(filtered_output)
|
|
|
185 |
|
186 |
Your tasks:
|
187 |
|
188 |
+
1. Identify and list only the medicine names mentioned (ignore other irrelevant text).
|
189 |
2. For each identified medicine, provide the following:
|
190 |
- Dosage and Timing
|
191 |
- Possible Side Effects
|
|
|
261 |
|
262 |
|
263 |
|
264 |
+
if filtered_output and st.button("🌐 Translate to Hindi"):
|
265 |
with st.spinner("Translating to Hindi..."):
|
266 |
try:
|
267 |
hindi_text = GoogleTranslator(source='en', target='hi').translate(filtered_output)
|