Spaces:
Sleeping
Sleeping
Commit ·
716160c
1
Parent(s): a32aa8a
Rename 03 chatgpt chat assistant website.py to app.py
Browse files123456789104 unmodified lines151617181920import openaiimport gradioopenai.api_key = "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"messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation"}]def CustomChatGPT(user_input):messages.append({"role": "user", "content": user_input})response = openai.ChatCompletion.create(4 unmodified linesmessages.append({"role": "assistant", "content": ChatGPT_reply})return ChatGPT_replydemo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "basit cyberwala gpt")demo.launch(share=True)1234567891011121314154 unmodified lines2021222324import openaiimport gradio as gropenai.api_key = "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"messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation"}]def CustomChatGPT(user_input):messages.append({"role": "user", "content": user_input})response = openai.ChatCompletion.create(4 unmodified linesmessages.append({"role": "assistant", "content": ChatGPT_reply})return ChatGPT_replyiface = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "basit cyberwala gpt")iface.launch()
03 chatgpt chat assistant website.py → app.pyRenamed+8-4