Hi, and welcome to UK Fungi.
I don’t think it possible to be fully confident of an identification as your fungi don’t look to be fully mature – and even if they were, would probably need microscopy.
However, the second photo suggests to me that these fruitbodies are likely to become “cup shaped”.
Possibly Peziza domiciliana or Peziza cerea would be likely suspects, as both of those species are known to inhabit various “man-made” substrates and often occur in dwelling places.
For these fungi to be able to grow suggests that your carpet is, or has recently been, subject to dampness for quite some time.
Presumably you would want to prevent further fungal growth, so I’d suggest looking into whatever might have been causing any dampness and trying to get the carpet and whatever is underneath it fully dry.
Regards,
Mike.