Arjn commited on
Commit
fa22d7f
·
1 Parent(s): 56e9f5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import openai
2
- import gradio
3
 
4
  openai.api_key= "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"
5
 
@@ -17,4 +17,6 @@ def CustomChatGPT(user_input):
17
  ChatGPT_reply = response["choices"][0]["message"]["content"]
18
  messages.append({"role": "assistant", "content": ChatGPT_reply})
19
  return ChatGPT_reply
20
- demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "SecureX beta")
 
 
 
1
  import openai
2
+
3
 
4
  openai.api_key= "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"
5
 
 
17
  ChatGPT_reply = response["choices"][0]["message"]["content"]
18
  messages.append({"role": "assistant", "content": ChatGPT_reply})
19
  return ChatGPT_reply
20
+ demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "SecureX beta")
21
+
22
+ demo.launch()