from asyncio import constants import gradio as gr import requests import os import random def desc_to_image(desc): random.seed(desc) tadneSeed=random.randint(0,2**256) psi=0.7 print("seed",tadneSeed,psi) #iface = gr.Interface.load("spaces/hysts/TADNE") #print("about to die",iface,dir(iface)) #img=iface.fns[0].fn(tadneSeed,psi) print("loading interface") tadne=gr.Interface.load("spaces/hysts/TADNE") print("calling interface") img=tadne(tadneSeed,psi,False) print("got img",img) return img demo = gr.Blocks() with demo: gr.Markdown("