Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
10 |
DEFAULT_MAX_TOKENS = 1000
|
11 |
DEFAULT_TEMPERATURE = 0.8
|
12 |
DEFAULT_TOP_P = 0.95
|
13 |
-
DEFAULT_SYSTEM_MESSAGE = "You are an expert in environmental psychology. Provide expert recommendations addressing the
|
14 |
|
15 |
def generate_recommendations(comfort, social_interaction, stressors, privacy, open_question, max_tokens=DEFAULT_MAX_TOKENS, temperature=DEFAULT_TEMPERATURE, top_p=DEFAULT_TOP_P, system_message=DEFAULT_SYSTEM_MESSAGE):
|
16 |
# Construct the input message for the model with context
|
|
|
10 |
DEFAULT_MAX_TOKENS = 1000
|
11 |
DEFAULT_TEMPERATURE = 0.8
|
12 |
DEFAULT_TOP_P = 0.95
|
13 |
+
DEFAULT_SYSTEM_MESSAGE = "You are an expert in environmental psychology. Provide expert recommendations addressing the client directly. Not like a letter though but like a professional report."
|
14 |
|
15 |
def generate_recommendations(comfort, social_interaction, stressors, privacy, open_question, max_tokens=DEFAULT_MAX_TOKENS, temperature=DEFAULT_TEMPERATURE, top_p=DEFAULT_TOP_P, system_message=DEFAULT_SYSTEM_MESSAGE):
|
16 |
# Construct the input message for the model with context
|