Thanks for your query.
Your baby is having diarrhea which in most cases is viral in nature and takes few days to subside.
I understand your concern for surgery.
Relax,most important is to prevent dehydration
Continue with oral rehydration solution sip by sip after each loose stools.give coconut water,thin curd(lassi)dal water,rice water.
sachet for 3 to 4days and zinc for 14 days.
Observe for any features of dehydration like decreased urine output,lethargy,sunken eyes.and in case you find any get her evaluated by pediatrician
Wishing your baby good health.