Spaces:
Running
on
T4
Running
on
T4
API Documentation
#2
by
picartai
- opened
Using your API for the doevent/Face-Real-ESRGAN. After upscaling the first image any following image upscale requests returns the same first image. I'm not sure if the API is functioning or if there is further documentation you can provide. Previously API was working without authentication, are you building authentication schemes to access the APIs? If so, please advise so we can provide the proper authentication.
The API does not use the queue and causes a GPU error. Use the interface-load method:
https://gradio.app/docs/#interface-load
pip3 install gradio
import gradio as gr
load_spaces = gr.load(name="doevent/Face-Real-ESRGAN", src="spaces")
filepath = "test.jpg"
response = load_spaces(filepath, "2x", fn_index=0)
print(response)
Or with this module:
https://pypi.org/project/gradio-client/
doevent
changed discussion status to
closed