Prathap commited on
Commit
9a50fc9
1 Parent(s): 3a7fc38

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import openai
3
+
4
+ with open('GPT_SECRET_KEY.json') as f:
5
+ data = json.load(f)
6
+
7
+ openai.api_key = data["API_KEY"]
8
+
9
+ from gpt import GPT
10
+ from gpt import Example
11
+
12
+ gpt = GPT(engine="davinci",
13
+ temperature=0.6,
14
+ max_tokens=100)