You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Gradio Python library. When running the code:
import gradio as gr
gr.load_chat("http://127.0.0.1:11434/v1/", model="deepseek-r1:8b", token="ollama").launch()
I encountered the following error:
Traceback (most recent call last):
File "C:\Users\gradio_chat\chat.py", line 3, in
gr.load_chat("http://127.0.0.1:11434/v1/", model="deepseek-r1:8b", token="ollama").launch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WU-GER\Desktop\gradio_chat\venv\Lib\site-packages\gradio\external.py", line 805, in load_chat
from gr.chat_interface import ChatInterface
ModuleNotFoundError: No module named 'gr'
Process finished with exit code 1
I found that the problem was due to the code in gradio>external.py file at line 805: from gr.chat_interface import ChatInterface. It was written incorrectly, and it should be:
from gradio.chat_interface import ChatInterface
Now the code runs normally.
I'm sorry, I'm not very familiar with the PR process. Could you please handle the PR? Thank you.
Describe the bug
I am using the Gradio Python library. When running the code:
import gradio as gr
gr.load_chat("http://127.0.0.1:11434/v1/", model="deepseek-r1:8b", token="ollama").launch()
I encountered the following error:
Traceback (most recent call last):
File "C:\Users\gradio_chat\chat.py", line 3, in
gr.load_chat("http://127.0.0.1:11434/v1/", model="deepseek-r1:8b", token="ollama").launch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WU-GER\Desktop\gradio_chat\venv\Lib\site-packages\gradio\external.py", line 805, in load_chat
from gr.chat_interface import ChatInterface
ModuleNotFoundError: No module named 'gr'
Process finished with exit code 1
I found that the problem was due to the code in gradio>external.py file at line 805: from gr.chat_interface import ChatInterface. It was written incorrectly, and it should be:
from gradio.chat_interface import ChatInterface
Now the code runs normally.
I'm sorry, I'm not very familiar with the PR process. Could you please handle the PR? Thank you.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: