Up / app.py
Nyashi's picture
Update app.py
c6d7b09
raw
history blame contribute delete
281 Bytes
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()