Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ def preprocess_user_input(input_text):
|
|
| 10 |
# Example: Add a prefix to the user input
|
| 11 |
processed_text = f"Explain to me what a {input_text} is!"
|
| 12 |
|
| 13 |
-
system_message = "Ersetze im folgenden Prompt alle wertenden adjektive mit neutraleren synonymen. Hier ist ein Beispiel: Inwiefern ist Gold kaufen geizig? wird zu: Inwiefern ist Gold kaufen ökonomisch?"
|
|
|
|
| 14 |
|
| 15 |
finalPrompt = insideRespond(input_text, system_message):
|
| 16 |
print(finalPrompt)
|
|
|
|
| 10 |
# Example: Add a prefix to the user input
|
| 11 |
processed_text = f"Explain to me what a {input_text} is!"
|
| 12 |
|
| 13 |
+
# system_message = "Ersetze im folgenden Prompt alle wertenden adjektive mit neutraleren synonymen. Hier ist ein Beispiel: Inwiefern ist Gold kaufen geizig? wird zu: Inwiefern ist Gold kaufen ökonomisch?"
|
| 14 |
+
system_message = "In the following prompt replace all biased adjectives with neutral synonyms. Here is an example: Inhowfar is buying gold stingy? becomes: Inhowfar is buying gold ecnomical?"
|
| 15 |
|
| 16 |
finalPrompt = insideRespond(input_text, system_message):
|
| 17 |
print(finalPrompt)
|