Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,12 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
| 8 |
|
| 9 |
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}"
|
| 12 |
|
| 13 |
-
system_message = ""
|
| 14 |
|
| 15 |
-
finalPrompt = insideRespond(
|
| 16 |
-
|
| 17 |
|
| 18 |
return finalPrompt
|
| 19 |
|
|
|
|
| 8 |
|
| 9 |
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)
|
| 17 |
|
| 18 |
return finalPrompt
|
| 19 |
|