Spaces:
Paused
Paused
remove weave capture_code
Browse files
app.py
CHANGED
|
@@ -981,11 +981,36 @@ def authf(username, password):
|
|
| 981 |
|
| 982 |
if __name__ == '__main__':
|
| 983 |
# demo.launch(server_name="0.0.0.0", auth=authf)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 984 |
|
| 985 |
-
|
|
|
|
| 986 |
|
| 987 |
with open("formatted_prompts.txt", "w") as f:
|
| 988 |
f.writelines('"write_struct_copy": "' + str2escaped(struct_copy_prompt).strip() + '",\n')
|
| 989 |
f.writelines('"write_copy": "' + str2escaped(copy_prompt).strip() + '",\n')
|
| 990 |
f.writelines('"write_struct": "' + str2escaped(struct_prompt).strip() + '",\n')
|
| 991 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 981 |
|
| 982 |
if __name__ == '__main__':
|
| 983 |
# demo.launch(server_name="0.0.0.0", auth=authf)
|
| 984 |
+
print("-----------------------------------------------------------------")
|
| 985 |
+
print("struct_copy_prompt\n", str2escaped(struct_copy_prompt))
|
| 986 |
+
print()
|
| 987 |
+
print("copy_prompt\n", str2escaped(copy_prompt))
|
| 988 |
+
print()
|
| 989 |
+
print("struct_prompt\n", str2escaped(struct_prompt))
|
| 990 |
+
print()
|
| 991 |
+
print("reasoning_prompt\n", str2escaped(reasoning_prompt))
|
| 992 |
+
print()
|
| 993 |
+
print("detect_feature_prompt\n", str2escaped(detect_feature_prompt))
|
| 994 |
+
print("-----------------------------------------------------------------")
|
| 995 |
|
| 996 |
+
|
| 997 |
+
weave.init("Copywriting - Hugging Face", settings={"capture_code": False})
|
| 998 |
|
| 999 |
with open("formatted_prompts.txt", "w") as f:
|
| 1000 |
f.writelines('"write_struct_copy": "' + str2escaped(struct_copy_prompt).strip() + '",\n')
|
| 1001 |
f.writelines('"write_copy": "' + str2escaped(copy_prompt).strip() + '",\n')
|
| 1002 |
f.writelines('"write_struct": "' + str2escaped(struct_prompt).strip() + '",\n')
|
| 1003 |
demo.launch()
|
| 1004 |
+
|
| 1005 |
+
# print("write_prompt\n", str2escaped(write_prompt))
|
| 1006 |
+
print("-----------------------------------------------------------------")
|
| 1007 |
+
print("struct_copy_prompt\n", str2escaped(struct_copy_prompt))
|
| 1008 |
+
print()
|
| 1009 |
+
print("copy_prompt\n", str2escaped(copy_prompt))
|
| 1010 |
+
print()
|
| 1011 |
+
print("struct_prompt\n", str2escaped(struct_prompt))
|
| 1012 |
+
print()
|
| 1013 |
+
print("reasoning_prompt\n", str2escaped(reasoning_prompt))
|
| 1014 |
+
print()
|
| 1015 |
+
print("detect_feature_prompt\n", str2escaped(detect_feature_prompt))
|
| 1016 |
+
print("-----------------------------------------------------------------")
|