from gradio_client import Client import os,gradio as gr cl=Client(os.environ["url"],hf_token=os.environ["tkn"]) import gradio as gr def revive(f): result=cl.predict(f,api_name="/predict") return result ints=gr.Interface(fn=revive,inputs="text",outputs="text") ints.launch()