Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,6 @@
|
|
1 |
-
messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation"}]
|
2 |
-
|
3 |
def greet(name):
|
4 |
return "Hello !!"
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
def CustomChatGPT(user_input):
|
9 |
-
messages.append({"role": "user", "content": enter_input_here})
|
10 |
-
response = openai.ChatCompletion.create(
|
11 |
-
model = "gpt-3.5-turbo",
|
12 |
-
messages = messages
|
13 |
-
)
|
14 |
-
ChatGPT_reply = response["choices"][0]["message"]["content"]
|
15 |
-
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
-
return ChatGPT_reply
|
17 |
-
|
18 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title = "Real Estate Pro")
|
19 |
|
20 |
iface.launch(share=True)
|
|
|
|
|
|
|
1 |
def greet(name):
|
2 |
return "Hello !!"
|
3 |
|
4 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text"")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
iface.launch(share=True)
|