when i ran main.py, and submit a pdf in the web browser, it was blocked in the uploading.
I found it encountered a Error: ERROR: Exception in ASGI application in llm envs.
Traceback (most recent call last):
File "/anaconda3/envs/llm/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/anaconda3/envs/llm/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/applications.py", line 1115, in call
await super().call(scope, receive, send)
File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/envs/llm/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/routing.py", line 274, in app
raw_response = await run_endpoint_function(
File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/anaconda3/envs/llm/lib/python3.10/site-packages/gradio/routes.py", line 638, in upload_file
await file_manager.save_uploaded_file(
File "/anaconda3/envs/llm/lib/python3.10/site-packages/gradio/components/base.py", line 251, in save_uploaded_file
temp_dir.mkdir(exist_ok=True, parents=True)
File "/anaconda3/envs/llm/lib/python3.10/pathlib.py", line 1175, in mkdir
self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/tmp/gradio/0478ad2b13329177d35c2d11f7506cdb1cc271ec'
cause I'm running on a sub-account in a cluster, and I don't have sudo privileges. I want to know how to modify the created address ? Thank you.
when i ran main.py, and submit a pdf in the web browser, it was blocked in the uploading. I found it encountered a Error: ERROR: Exception in ASGI application in llm envs.
Traceback (most recent call last): File "/anaconda3/envs/llm/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi result = await app( # type: ignore[func-returns-value] File "/anaconda3/envs/llm/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call return await self.app(scope, receive, send) File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/applications.py", line 1115, in call await super().call(scope, receive, send) File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call raise exc File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call await self.app(scope, receive, _send) File "/envs/llm/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in call await self.simple_response(scope, receive, send, request_headers=headers) File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response await self.app(scope, receive, send) File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call raise exc File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call await self.app(scope, receive, sender) File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call raise e File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 718, in call await route.handle(scope, receive, send) File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/anaconda3/envs/llm/lib/python3.10/site-packages/starlette/routing.py", line 66, in app response = await func(request) File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/routing.py", line 274, in app raw_response = await run_endpoint_function( File "/anaconda3/envs/llm/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function return await dependant.call(**values) File "/anaconda3/envs/llm/lib/python3.10/site-packages/gradio/routes.py", line 638, in upload_file await file_manager.save_uploaded_file( File "/anaconda3/envs/llm/lib/python3.10/site-packages/gradio/components/base.py", line 251, in save_uploaded_file temp_dir.mkdir(exist_ok=True, parents=True) File "/anaconda3/envs/llm/lib/python3.10/pathlib.py", line 1175, in mkdir self._accessor.mkdir(self, mode) PermissionError: [Errno 13] Permission denied: '/tmp/gradio/0478ad2b13329177d35c2d11f7506cdb1cc271ec'
cause I'm running on a sub-account in a cluster, and I don't have sudo privileges. I want to know how to modify the created address ? Thank you.