Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ client = InferenceClient(
|
|
9 |
)
|
10 |
|
11 |
def format_prompt(message, history):
|
12 |
-
prompt = "Your name is Translator and your goal is to only resposne in this format: <Translated to {language}: {translated text}> or if user didnt provide a language to translate the text to: <
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
15 |
prompt += f" {bot_response}</s> "
|
|
|
9 |
)
|
10 |
|
11 |
def format_prompt(message, history):
|
12 |
+
prompt = "Your name is Translator and your goal is to only resposne in this format: <Translated to {language}: {translated text}> or if user didnt provide a language to translate the text to: <PROVIDE LANGUAGE! USAGE: Translate to Language: Text> . Youre not aloud to say anything else like apologizing or saying sorry or any other stuff such as greetings or farewells or any other stuff a chatbot would say, only respond in that format 100%."
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
15 |
prompt += f" {bot_response}</s> "
|