Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.3", token=HF_AP
|
|
10 |
|
11 |
# Funktion zur Emoji-Übersetzung
|
12 |
def text_to_emoji(text):
|
13 |
-
prompt = f"Convert this sentence into
|
14 |
response = client.text_generation(prompt, max_new_tokens=50)
|
15 |
return response
|
16 |
|
|
|
10 |
|
11 |
# Funktion zur Emoji-Übersetzung
|
12 |
def text_to_emoji(text):
|
13 |
+
prompt = f"Convert this sentence into an Emoji-Sequence of the same meaning and return only the emojis, no explanation:\n\n\"{text}\""
|
14 |
response = client.text_generation(prompt, max_new_tokens=50)
|
15 |
return response
|
16 |
|