Closed Dreaming-Wide-Awake closed 1 year ago
Hi @Dreaming-Wide-Awake, two things:
(1) I highly recommend that you delete your Open AI key as it seems that you have shared it publicly so other people will be able use it. I'm going to delete this issue to minimize visibility
(2) The share link generation is working for me on Google Colab. It could be that your system is blocking it. If that is the case, can you please tell us more about what system (OS and Python environment) you are running this on? The more details, the better chance we'll have to be able to diagnose the problem. We have an existing issue here, if you can add to it
Hi! Thanks for getting back to me. I changed my Open AI key. Thanks for looking out for me.
It still doesn't work for me. I am on windows 10, and using Visual Studio Code. It was working last week, however I needed to move Python to my D: drive due to space issues. Everything else works, including automatic1111, but only locally. I uninstalled Python 3.10 from windows are reinstalled on D:. I uninstalled it on Visual Studio Code and reinstalled it there. I deleted venv folders and reinstalled via pip commands both openai and gradio. Not sure what else I can do other than uninstall Visual Studio Code and reinstall from scratch. Anything else I could try first?
Hmm I don't think reinstalling Visual Studio code should make any difference. Honestly, I can't think what might be happening except that maybe your computer is blocking the share link from being created b/c of a firewall issue.
The only alternative that I can suggest right now is that you can try using Automatic1111 web ui on Hugging Face Spaces: https://huggingface.co/spaces/camenduru/webui-docker
Although it might be a slightly different version of the webui (I'm not sure)
Just as a late follow up. I did end up solving this. The issue was when I moved my python from C: drive to D: drive, it removed it from PATH. Once I added it back to PATH, the gradio service ran fine. Just sharing this for anyone else who may have ended up in this unique circumstance.
Describe the bug
Gradio status listed as "All systems operational", however I'm getting the same error that was happening 2 days ago (listed as resolved at this point).
My internet connect is fine, my code has not changed since I last used it when it worked fine.
_PS D:\AI\My Programming Projects> & "D:/Program Files (x86)/Python/Python310/python.exe" "d:/AI/My Programming Projects/Python/Tutorials/ChatGPT Python Basic Tutorial (The AI Advantage)/03 chatgpt chat assistant website.py" Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app_
Is there an existing issue for this?
Reproduction
import openai import gradio
openai.api_key = "XXXXXXXX"
messages = [{"role": "system", "content": "You are a psychologist"}]
def CustomChatGPT(user_input): messages.append({"role": "user", "content": user_input}) response = openai.ChatCompletion.create( model = "gpt-3.5-turbo", messages = messages ) ChatGPT_reply = response["choices"][0]["message"]["content"] messages.append({"role": "assistant", "content": ChatGPT_reply}) return ChatGPT_reply
demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Real Estate Pro")
demo.launch(share=True)
Screenshot
No response
Logs
System Info
Severity
annoying