<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_interval(self, interval):
 """Set the polling interval for the process thread. :param interval: How often to poll the Hottop :type interval: int or float :returns: None :raises: InvalidInput """

        if type(interval) != float or type(interval) != int:
            raise InvalidInput("Interval value must be of float or int")
        self._config['interval']