* Serving Flask app 'app' * Debug mode: on…
- User
- Serving Flask app 'app'
- Debug mode: on
/usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:242: UserWarning: You have not specified a value for the
typeparameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys. warnings.warn( WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - Running on all addresses (0.0.0.0)
- Running on http://127.0.0.1:7860
- Running on http://10.28.66.128:7860 Press CTRL+C to quit
- Restarting with stat
/usr/local/lib/python3.10/site-packages/gradio/node_server.py:136: UserWarning: Unexpected error while starting Node server: signal only works in main thread of the main interpreter. Trying next port...
warnings.warn(
/usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:242: UserWarning: You have not specified a value for the
typeparameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys. warnings.warn( - Debugger is active!
- Debugger PIN: 304-500-340 /usr/local/lib/python3.10/site-packages/gradio/node_server.py:136: UserWarning: Unexpected error while starting Node server: signal only works in main thread of the main interpreter. Trying next port... warnings.warn( Cannot start Node server on any port in the range 7861-7960. Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. Exception in thread Thread-2 (run_gradio): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/user/app/app.py", line 89, in run_gradio gr.Interface(fn=chat_with_model, inputs=["text", "slider", "slider", "number", "chatbot"], outputs=["chatbot", "number", "text", "text"]).launch(share=True, inline=False) File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2515, in launch ) = http_server.start_server( File "/usr/local/lib/python3.10/site-packages/gradio/http_server.py", line 156, in start_server raise OSError( OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the parameter to . Cannot start Node server on any port in the range 7861-7960. Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. Exception in thread Thread-2 (run_gradio): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/user/app/app.py", line 89, in run_gradio gr.Interface(fn=chat_with_model, inputs=["text", "slider", "slider", "number", "chatbot"], outputs=["chatbot", "number", "text", "text"]).launch(share=True, inline=False) File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2515, in launch ) = http_server.start_server( File "/usr/local/lib/python3.10/site-packages/gradio/http_server.py", line 156, in start_server raise OSError( OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the parameter to .
- Assistant
- User
Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1536, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1514, in wsgi_app response = self.handle_exception(e) File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1511, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 919, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] File "/home/user/app/app.py", line 74, in gradio_interface return gr.Widgets(chatbot_component_ui()) AttributeError: module 'gradio' has no attribute 'Widgets'
- Assistant
- Assistant
It seems like your latest message is blank or you've not provided specific input. If you're seeking further clarification or assistance, feel free to ask—and if there are additional errors or specific challenges in the implementation, share those details so I can assist you further. Alternatively, let me know if the corrected approach worked for your use case! 😊