Spaces:
Running
Running
gokaygokay
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -318,7 +318,7 @@ You are allowed to make up film and branding names, and do them like 80's, 90's
|
|
318 |
char_limit = compression_chars[compression_level]
|
319 |
base_prompt += f" Compress the output to be concise while retaining key visual details. MAX OUTPUT SIZE no more than {char_limit} characters."
|
320 |
|
321 |
-
messages = f"<|im_start|>system\nYou are
|
322 |
messages += f"\n<|im_start|>user\n{base_prompt}\nDescription: {input_text}<|im_end|>\n<|im_start|>assistant\n"
|
323 |
|
324 |
stream = client.text_generation(messages, max_new_tokens=4000, do_sample=True, stream=True, details=True, return_full_text=False)
|
|
|
318 |
char_limit = compression_chars[compression_level]
|
319 |
base_prompt += f" Compress the output to be concise while retaining key visual details. MAX OUTPUT SIZE no more than {char_limit} characters."
|
320 |
|
321 |
+
messages = f"<|im_start|>system\nYou are a helpful assistant. Try your best to give best response possible to user.<|im_end|>"
|
322 |
messages += f"\n<|im_start|>user\n{base_prompt}\nDescription: {input_text}<|im_end|>\n<|im_start|>assistant\n"
|
323 |
|
324 |
stream = client.text_generation(messages, max_new_tokens=4000, do_sample=True, stream=True, details=True, return_full_text=False)
|