Spaces:
Sleeping
Sleeping
gamino-instructor
commited on
Commit
•
1cfe230
1
Parent(s):
1c43bb7
New Space!
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
6 |
|
7 |
-
system_instructions = """<s> [INST] You will be provided with text, and your task is to translate it into emojis. DO NOT USE ANY REGULAR TEXT. Do your best with emojis only. Translate this text: """
|
8 |
|
9 |
|
10 |
def generate_translation(prompt):
|
@@ -88,4 +88,4 @@ with gr.Blocks() as demo:
|
|
88 |
outputs=output, api_name="translate_emojis")
|
89 |
|
90 |
if __name__ == "__main__":
|
91 |
-
demo.launch(show_api=
|
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
6 |
|
7 |
+
system_instructions = """<s> [INST] These are the instructions: You will be provided with text, and your task is to translate it into emojis. DO NOT USE ANY REGULAR TEXT. Do your best with emojis only. Translate this text: """
|
8 |
|
9 |
|
10 |
def generate_translation(prompt):
|
|
|
88 |
outputs=output, api_name="translate_emojis")
|
89 |
|
90 |
if __name__ == "__main__":
|
91 |
+
demo.launch(show_api=True, share=True, debug=True)
|