Spaces:
Running
Running
Commit
•
97bbc3c
1
Parent(s):
3150b8d
whoops forgor about )
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
@@ -36,7 +36,7 @@ def generate_answer(request: str, max_tokens: int = 256, custom_prompt: str = No
|
|
36 |
userPrompt = prompt.replace("{prompt}", request)
|
37 |
userPrompt = userPrompt.replace(
|
38 |
"{system_message}",
|
39 |
-
custom_prompt if isinstance(custom_prompt, str) and len(custom_prompt.strip()) > 1 and custom_prompt.strip() not in ['', None, ' ']
|
40 |
)
|
41 |
logs += f"\nFinal prompt: {userPrompt}\n"
|
42 |
except:
|
|
|
36 |
userPrompt = prompt.replace("{prompt}", request)
|
37 |
userPrompt = userPrompt.replace(
|
38 |
"{system_message}",
|
39 |
+
custom_prompt if isinstance(custom_prompt, str) and len(custom_prompt.strip()) > 1 and custom_prompt.strip() not in ['', None, ' '] else system_message
|
40 |
)
|
41 |
logs += f"\nFinal prompt: {userPrompt}\n"
|
42 |
except:
|