



'''simple docstring'''





# Function to print upper half of diamond (pyramid)





def 						__snake_case(				_lowerCAmelCase		)		-> Any:
      for i in range(0     ,   _lowerCAmelCase		):
            for _ in range(0     ,   n - i - 1		):  # printing spaces
                  print(""" """     ,   end=""""""		)
            for _ in range(0     ,   i + 1		):  # printing stars
                  print("""* """     ,   end=""""""		)
            print()





def 						__snake_case(				_lowerCAmelCase		)		-> List[str]:
      for i in range(_lowerCAmelCase     ,   0     ,   -1		):
            for _ in range(_lowerCAmelCase     ,   0     ,   -1		):  # printing stars
                  print("""* """     ,   end=""""""		)
            print()
            for _ in range(n - i + 1     ,   0     ,   -1		):  # printing spaces
                  print(""" """     ,   end=""""""		)





def 						__snake_case(				_lowerCAmelCase		)		-> List[Any]:
      if n <= 0:
            print("""       ...       ....        nothing printing :("""		)
            return
      floyd(_lowerCAmelCase		)  # upper half
      reverse_floyd(_lowerCAmelCase		)  # lower half


if __name__ == "__main__":
       print(R"| /\ | |- |  |-  |--| |\  /| |-")
       print(R"|/  \| |- |_ |_  |__| | \/ | |_")
       __a          =		1
       while K:
              __a          =		int(input("enter the number and , and see the magic : "))
              print()
              pretty_print(user_number)
              __a          =		int(input("press 0 to exit... and 1 to continue..."))

       print("Good Bye...")





'''simple docstring'''





import numpy as np

from transformers import Pipeline





def 						__snake_case(				_lowerCAmelCase		)		-> Optional[int]:
      snake_case__  :    Optional[Any]    						=      np.max(_lowerCAmelCase     ,   axis=-1     ,   keepdims=_lowerCAmelCase		)
      snake_case__  :    List[str]    						=      np.exp(outputs - maxes		)
      return shifted_exp / shifted_exp.sum(axis=-1     ,   keepdims=_lowerCAmelCase		)







class     UpperCAmelCase_       (       _a	):
    """simple docstring"""







    def lowerCamelCase       (    self					:     Optional[Any] ,     **snake_case_					:     int						):
          snake_case__  :    Optional[int]    						=      {}
          if "second_text" in kwargs:
                snake_case__  :    Union[str, Any]    						=      kwargs["""second_text"""]
          return preprocess_kwargs, {}, {}




    def lowerCamelCase       (    self					:     str ,     snake_case_					:     Tuple ,     snake_case_					:     Union[str, Any]=None						):
          return self.tokenizer(snake_case_ ,     text_pair=snake_case_ ,     return_tensors=self.framework						)




    def lowerCamelCase       (    self					:     List[Any] ,     snake_case_					:     Dict						):
          return self.model(**snake_case_						)




    def lowerCamelCase       (    self					:     int ,     snake_case_					:     List[Any]						):
          snake_case__  :    Union[str, Any]    						=      model_outputs.logits[0].numpy()
          snake_case__  :    List[str]    						=      softmax(snake_case_						)

          snake_case__  :    List[str]    						=      np.argmax(snake_case_						)
          snake_case__  :    List[str]    						=      self.model.config.idalabel[best_class]
          snake_case__  :    Optional[int]    						=      probabilities[best_class].item()
          snake_case__  :    str    						=      logits.tolist()
          return {"label": label, "score": score, "logits": logits}
