Spaces:
Running
Running
import SpaceFace as sf | |
class GreetingEndpoint: | |
def receivedMessage(self, message, user: sf.User, responder: sf.Responder): | |
responder.respond(f"Hello {user.name}, you told me \"{message}\"") | |
responder.close() | |
sf.start_server([GreetingEndpoint()]) |