Spaces:
Runtime error
app constantly busy
Hello,
is it possible to debug the app ? it says its constantly busy and i tried to duplicate the space but i had error. Can you fix this issue ?
thank you !
What error you got after duplicating space?
runtime error
[34mprodiapy[39m 22:27:59.279 - [[95mINFO[39m]: Welcome to prodiapy v4.3.2, if you have any questions abt package contact us on https://discord.gg/GyBCkGnbUN
[34mprodiapy[39m 22:27:59.333 - [[91mERROR[39m]: Caught error(Unauthorized)
Traceback (most recent call last):
File "/home/user/app/app.py", line 5, in
from grutils import *
File "/home/user/app/grutils.py", line 9, in
model_list = pipe.constant("/sd/models")
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/resources/custom.py", line 21, in constant
return super()._get(url=f"{self.base}{endpoint}", api_key=self.api_key)
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/resources/engine.py", line 11, in _get
return request(method='get', url=url, api_key=api_key)
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/util.py", line 12, in request
raise AuthorizationError(f"Prodia API returned {r.status_code}. Details: {r.text}")
prodiapy.exceptions.AuthorizationError: Prodia API returned 401. Details: Key Not Recognised
Container logs:
===== Application Startup at 2023-11-03 21:27:43 =====
prodiapy 22:28:6.760 - [INFO]: Welcome to prodiapy v4.3.2, if you have any questions abt package contact us on https://discord.gg/GyBCkGnbUN
prodiapy 22:28:6.807 - [ERROR]: Caught error(Unauthorized)
Traceback (most recent call last):
File "/home/user/app/app.py", line 5, in
from grutils import *
File "/home/user/app/grutils.py", line 9, in
model_list = pipe.constant("/sd/models")
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/resources/custom.py", line 21, in constant
return super()._get(url=f"{self.base}{endpoint}", api_key=self.api_key)
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/resources/engine.py", line 11, in _get
return request(method='get', url=url, api_key=api_key)
File "/home/user/.local/lib/python3.10/site-packages/prodiapy/util.py", line 12, in request
raise AuthorizationError(f"Prodia API returned {r.status_code}. Details: {r.text}")
prodiapy.exceptions.AuthorizationError: Prodia API returned 401. Details: Key Not Recognised
you didnt set up api key or its wrong, make sure you have env secret with right api key in the hf space settings
to do this add secret env variable in space settings with name PRODIA_API_KEY and value of your api key