Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import openai
|
| 2 |
-
|
| 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()
|