Answer by Japanese teacher
You can use the first expression to mean “I’m just looking…”.
Ending the sentence with hesitation expresses a non-verbal meaning which can be left to the interpretation of the listener. In this case, the sales person will understand and leave you alone to browse around in leisure.
The second expression is more direct and asks for permission to look around. Choose one that you feel most comfortable with and try it!