Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# JBHF/VERTAAL-APP-EAGLE-SHELTER/app.py -
|
2 |
# WERKT AL: DE OPGENOMEN AUDIO MBV DEZE APP, audio.wav, HOEFT NIET PERSÉ GEPERSISTEERD TE WORDEN !!!!!!
|
3 |
|
4 |
# https://github.com/theevann/streamlit-audiorecorder
|
@@ -106,7 +106,11 @@ llm = ChatGroq(temperature=0, model_name="mixtral-8x7b-32768")
|
|
106 |
|
107 |
# Define the system message introducing the AI assistant's capabilities.
|
108 |
# system = "You are an expert Coding Assistant."
|
109 |
-
system = "You are an expert translation Assistant, proficient in all languages."
|
|
|
|
|
|
|
|
|
110 |
|
111 |
# Define a placeholder for the user's input.
|
112 |
human = "{text}"
|
@@ -298,6 +302,7 @@ response = chain.invoke({"text": \
|
|
298 |
Do not translate names of places, towns and other geographical names.
|
299 |
Do not translate names of people.
|
300 |
Only give the translation and not anything else!
|
|
|
301 |
""" + text_to_transcribe}) # JB TRANSLATE TO DUTCH
|
302 |
|
303 |
# Print the Response.
|
|
|
1 |
+
# JBHF/VERTAAL-APP-EAGLE-SHELTER/app.py - 16-04-2024, 14u00m CET
|
2 |
# WERKT AL: DE OPGENOMEN AUDIO MBV DEZE APP, audio.wav, HOEFT NIET PERSÉ GEPERSISTEERD TE WORDEN !!!!!!
|
3 |
|
4 |
# https://github.com/theevann/streamlit-audiorecorder
|
|
|
106 |
|
107 |
# Define the system message introducing the AI assistant's capabilities.
|
108 |
# system = "You are an expert Coding Assistant."
|
109 |
+
# system = "You are an expert translation Assistant, proficient in all languages."
|
110 |
+
system = """
|
111 |
+
You are an expert translation Assistant, proficient in all languages.
|
112 |
+
You only deliver the translation as output, nothing else. No comments or explanations.
|
113 |
+
"""
|
114 |
|
115 |
# Define a placeholder for the user's input.
|
116 |
human = "{text}"
|
|
|
302 |
Do not translate names of places, towns and other geographical names.
|
303 |
Do not translate names of people.
|
304 |
Only give the translation and not anything else!
|
305 |
+
No comments, no explanations, only give the translated text!
|
306 |
""" + text_to_transcribe}) # JB TRANSLATE TO DUTCH
|
307 |
|
308 |
# Print the Response.
|