Yashvj123 commited on
Commit
0a5e3c5
·
verified ·
1 Parent(s): 5b7e55b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -185,7 +185,7 @@ if uploaded_file:
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,7 +261,7 @@ if uploaded_file:
261
 
262
 
263
 
264
- if response 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)
 
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)