Spaces:
Runtime error
Runtime error
Commit
•
36c93f6
1
Parent(s):
9c83cdd
final removal of translator
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
@@ -28,7 +28,7 @@ with open('system.prompt', 'r', encoding='utf-8') as f:
|
|
28 |
prompt = f.read()
|
29 |
|
30 |
def generate_answer(request: str, max_tokens: int = 256, custom_prompt: str = None):
|
31 |
-
logs = f"Request: {request}\nMax tokens: {max_tokens}\
|
32 |
try:
|
33 |
maxTokens = max_tokens if 16 <= max_tokens <= 256 else 64
|
34 |
if isinstance(custom_prompt, str) and len(custom_prompt.strip()) > 1 and custom_prompt.strip() not in ['', None, ' ']:
|
|
|
28 |
prompt = f.read()
|
29 |
|
30 |
def generate_answer(request: str, max_tokens: int = 256, custom_prompt: str = None):
|
31 |
+
logs = f"Request: {request}\nMax tokens: {max_tokens}\nCustom prompt: {custom_prompt}\n"
|
32 |
try:
|
33 |
maxTokens = max_tokens if 16 <= max_tokens <= 256 else 64
|
34 |
if isinstance(custom_prompt, str) and len(custom_prompt.strip()) > 1 and custom_prompt.strip() not in ['', None, ' ']:
|