Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
|
4 |
openai.api_key = "mykey"
|
@@ -15,6 +15,6 @@ def CustomChatGPT(user_input):
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
-
demo =
|
19 |
|
20 |
demo.launch(share=True)
|
|
|
1 |
+
import openai
|
2 |
import gradio as gr
|
3 |
|
4 |
openai.api_key = "mykey"
|
|
|
15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
16 |
return ChatGPT_reply
|
17 |
|
18 |
+
demo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Real Estate Pro")
|
19 |
|
20 |
demo.launch(share=True)
|