OdinStef commited on
Commit
cafbf04
·
1 Parent(s): 444ba67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Real Estate Pro")
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)