Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,9 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
-
from dotenv import load_dotenv
|
| 4 |
-
load_dotenv()
|
| 5 |
-
|
| 6 |
import openai
|
| 7 |
import gradio
|
| 8 |
|
| 9 |
-
openai.api_key =
|
| 10 |
|
| 11 |
messages = [
|
| 12 |
{"role": "system", "content": "You are a Competitive Programming expert that specializes in coding and Competitive Data structures and Algorithms"}
|
|
|
|
| 1 |
import os
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
import openai
|
| 4 |
import gradio
|
| 5 |
|
| 6 |
+
openai.api_key = "OPENAI_API_KEY"
|
| 7 |
|
| 8 |
messages = [
|
| 9 |
{"role": "system", "content": "You are a Competitive Programming expert that specializes in coding and Competitive Data structures and Algorithms"}
|