Downloads · 30 days
0
meeeeeeeeeeeeeeeeeee/lol
lol is a machine learning model from meeeeeeeeeeeeeeeeeee. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Feb 15, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 68%
From the Hugging Face model README
import gradio
openai.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( 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)