kenken999 commited on
Commit
55aadad
1 Parent(s): bab3409
README.md CHANGED
@@ -10,3 +10,11 @@ pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+ for gpt-enginner
14
+ export OPENAI_API_BASE="https://api.groq.com/openai/v1"
15
+ export OPENAI_API_KEY="*************"
16
+ export MODEL_NAME="llama3-8b-8192"
17
+ export LOCAL_MODEL=true
18
+ for interpreter
19
+
20
+ https://colab.research.google.com/drive/1Bg84yu7H7_3-gLi_9kq7dqQUBlY2gID8#scrollTo=9NvMISAqxcIq
controllers/testfolder12345 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit c8aa2a301cbf1076465d24a834624a4826ff9ecd
gpt_engenner.py CHANGED
@@ -1,4 +1,4 @@
1
  from mysite.interpreter.process import no_process_file
2
 
3
 
4
- no_process_file("111111111111111lineのテストファイルの実行","testfolder111111111")
 
1
  from mysite.interpreter.process import no_process_file
2
 
3
 
4
+ no_process_file("ineのテストファイルの実行","testfolder12345")
mysite/interpreter/process.py CHANGED
@@ -19,7 +19,7 @@ BASE_PATH = "/home/user/app/controllers/"
19
 
20
  def set_environment_variables():
21
  os.environ["OPENAI_API_BASE"] = "https://api.groq.com/openai/v1"
22
- os.environ["OPENAI_API_KEY"] = "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"
23
  os.environ["MODEL_NAME"] = "llama3-8b-8192"
24
  os.environ["LOCAL_MODEL"] = "true"
25
 
 
19
 
20
  def set_environment_variables():
21
  os.environ["OPENAI_API_BASE"] = "https://api.groq.com/openai/v1"
22
+ os.environ["OPENAI_API_KEY"] = os.getenv("api_key")
23
  os.environ["MODEL_NAME"] = "llama3-8b-8192"
24
  os.environ["LOCAL_MODEL"] = "true"
25