import json import os, time import gradio as gr from numpy.linalg import norm from gradio_client import Client token = os.environ['token'] if __name__ == "__main__": while True: try: demo = gr.load("VTechAI/Face_demo", src="spaces", hf_token=token) except: time.sleep(10) else: break demo.launch()