Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this error in VS code while deploying my ML model using flask #7336

Open
1 task done
harmansb opened this issue Jul 5, 2024 · 0 comments
Open
1 task done

Comments

@harmansb
Copy link

harmansb commented Jul 5, 2024

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Windows

Which version of AutoGPT are you using?

Latest Release

Do you use OpenAI GPT-3 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

flask run
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\hp\Desktop\New folder (2)\venv\Scripts\flask.exe_main
.py", line 7, in
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\flask\cli.py", line 1105, in main
cli.main()
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\flask\cli.py", line 953, in run_command
raise e from None
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\flask\cli.py", line 937, in run_command
app: WSGIApplication = info.load_app()
^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\flask\cli.py", line 339, in load_app
app = locate_app(import_name, None, raise_if_not_found=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\Desktop\New folder (2)\venv\Lib\site-packages\flask\cli.py", line 245, in locate_app
import(module_name)
File "C:\Users\hp\Desktop\New folder (2)\app.py", line 18, in
raise ValueError(f"Error loading model: {e}")
ValueError: Error loading model: No model config found in the file at new_plants1.h5.

Upload Activity Log Content

No response

Upload Error Log Content

No response

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

No branches or pull requests

1 participant