Spaces:
Running
Running
Commit
·
a0eca45
1
Parent(s):
56c10d2
Update app.py
Browse files
app.py
CHANGED
@@ -34,15 +34,18 @@ os.environ["OPENAI_API_KEY"] = os.environ['openai_key']
|
|
34 |
prompt_templates = {"All Needs Experts": "Respond as if you are combination of all needs assessment experts."}
|
35 |
actor_description = {"All Needs Experts": "<div style='float: left;margin: 0px 5px 0px 5px;'><img src='https://na.weshareresearch.com/wp-content/uploads/2023/04/experts2.jpg' alt='needs expert image' style='width:70px;align:top;'></div>A combiation of all needs assessment experts."}
|
36 |
|
37 |
-
|
38 |
-
prompts_archive_url = "https://huggingface.co/datasets/ryanrwatkins/
|
39 |
-
prompts_archive_file_name = "
|
40 |
prompts_archive_file = os.path.join("prompts_archive", prompts_archive_file_name)
|
41 |
print(prompts_archive_file)
|
42 |
|
|
|
|
|
|
|
43 |
HF_TOKEN = os.environ.get("HF_token_write")
|
44 |
repo = Repository(
|
45 |
-
local_dir="prompts_archive", clone_from=
|
46 |
)
|
47 |
|
48 |
|
|
|
34 |
prompt_templates = {"All Needs Experts": "Respond as if you are combination of all needs assessment experts."}
|
35 |
actor_description = {"All Needs Experts": "<div style='float: left;margin: 0px 5px 0px 5px;'><img src='https://na.weshareresearch.com/wp-content/uploads/2023/04/experts2.jpg' alt='needs expert image' style='width:70px;align:top;'></div>A combiation of all needs assessment experts."}
|
36 |
|
37 |
+
repo_url = create_repo(repo_id="prompts_archive")
|
38 |
+
prompts_archive_url = "https://huggingface.co/datasets/ryanrwatkins/prompts_archive"
|
39 |
+
prompts_archive_file_name = "prompts_archive.csv"
|
40 |
prompts_archive_file = os.path.join("prompts_archive", prompts_archive_file_name)
|
41 |
print(prompts_archive_file)
|
42 |
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
HF_TOKEN = os.environ.get("HF_token_write")
|
47 |
repo = Repository(
|
48 |
+
local_dir="prompts_archive", clone_from=repo_url, use_auth_token=HF_TOKEN, git_user="ryanrwatkins", git_email="[email protected]"
|
49 |
)
|
50 |
|
51 |
|