Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Error and doesn't work #67

Open
ShvetsAaa opened this issue Jul 25, 2023 · 2 comments
Open

Error and doesn't work #67

ShvetsAaa opened this issue Jul 25, 2023 · 2 comments

Comments

@ShvetsAaa
Copy link

Traceback (most recent call last):
File "/content/refacer/app.py", line 70, in
with gr.Blocks() as demo:
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1478, in exit
self.app = routes.App.create_app(self)
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 220, in create_app
def login(form_data: OAuth2PasswordRequestForm = Depends()):
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 706, in decorator
self.add_api_route(
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 645, in add_api_route
route = route_class(
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 491, in init
self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 268, in get_dependant
sub_dependant = get_param_sub_dependant(
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 111, in get_param_sub_dependant
return get_sub_dependant(
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 147, in get_sub_dependant
sub_dependant = get_dependant(
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 289, in get_dependant
add_param_to_fields(field=param_field, dependant=dependant)
File "/usr/local/lib/python3.10/dist-packages/fastapi/dependencies/utils.py", line 462, in add_param_to_fields
if field_info.in_ == params.ParamTypes.path:
AttributeError: 'FieldInfo' object has no attribute 'in_'

@badunch
Copy link

badunch commented Jul 25, 2023

getting the same

@ShvetsAaa
Copy link
Author

Working again:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@badunch @ShvetsAaa and others