查找较大数字的脚本会不断给出错误答案

该脚本应该询问两个数字并输出哪个数字更大,但始终给出错误的答案,例如54> 3514等。

def numberThingy():
num1=input("Enter first number: ").strip()
num2=input("Enter second number: ").strip()

if num1>num2:
    print("The first number is larger.")
elif num1<num2:
    print("The second number is larger.")
else:
    print("The numbers are equal.")

while True:
    numberThingy()