Spaces:
Running
Running
Commit
·
5e6b73c
1
Parent(s):
47896a5
update system instructions
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def generate_translation(prompt):
|
|
33 |
return ''.join(filtered_output).replace(" ", "").replace("\n", "")
|
34 |
|
35 |
|
36 |
-
|
37 |
|
38 |
|
39 |
def generate_emoji_translation(prompt):
|
@@ -46,7 +46,7 @@ def generate_emoji_translation(prompt):
|
|
46 |
seed=42,
|
47 |
)
|
48 |
|
49 |
-
formatted_prompt =
|
50 |
stream = client.text_generation(
|
51 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
52 |
output = ""
|
|
|
33 |
return ''.join(filtered_output).replace(" ", "").replace("\n", "")
|
34 |
|
35 |
|
36 |
+
system_instructions_emoji_input = """<s> [INST] You will be provided with emojis, and your task is to create a story from it. DO NOT USE ANY REGULAR EMOJIS. Do your best with text only. Translate this emojis: """
|
37 |
|
38 |
|
39 |
def generate_emoji_translation(prompt):
|
|
|
46 |
seed=42,
|
47 |
)
|
48 |
|
49 |
+
formatted_prompt = system_instructions_emoji_input + prompt + "[/INST]"
|
50 |
stream = client.text_generation(
|
51 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
52 |
output = ""
|