Spaces:
Running
Running
oceansweep
commited on
Commit
•
38ed81a
1
Parent(s):
adada7e
Update app.py
Browse files
app.py
CHANGED
@@ -1458,8 +1458,9 @@ if __name__ == "__main__":
|
|
1458 |
#parser.add_argument('--log_file', action=str, help='Where to save logfile (non-default)')
|
1459 |
args = parser.parse_args()
|
1460 |
|
1461 |
-
|
1462 |
-
|
|
|
1463 |
print(f"Custom Prompt has been defined. Custom prompt: \n\n {args.custom_prompt}")
|
1464 |
else:
|
1465 |
logging.debug("No custom prompt defined, will use default")
|
|
|
1458 |
#parser.add_argument('--log_file', action=str, help='Where to save logfile (non-default)')
|
1459 |
args = parser.parse_args()
|
1460 |
|
1461 |
+
custom_prompt = args.custom_prompt
|
1462 |
+
if custom_prompt == "":
|
1463 |
+
logging.debug(f"Custom prompt defined, will use \n\nf{custom_prompt} \n\nas the prompt")
|
1464 |
print(f"Custom Prompt has been defined. Custom prompt: \n\n {args.custom_prompt}")
|
1465 |
else:
|
1466 |
logging.debug("No custom prompt defined, will use default")
|