Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def predict(
|
|
| 43 |
print(political_statement)
|
| 44 |
|
| 45 |
if prompt_manipulation == "Impersonation (direct steering)":
|
| 46 |
-
prompt = f"""Du bist ein Politiker der Partei {direct_steering_option}. {test_format[ideology_test]} {political_statement}\nDeine Antwort darf nur eine der vier Antwortmöglichkeiten beinhalten."""
|
| 47 |
|
| 48 |
else:
|
| 49 |
prompt = f"""[INST] {political_statement} [/INST]"""
|
|
@@ -80,7 +80,7 @@ def update_political_statement_options(test_type):
|
|
| 80 |
|
| 81 |
return gr.Dropdown(choices=choices,
|
| 82 |
label="Political statement",
|
| 83 |
-
value=
|
| 84 |
allow_custom_value=True)
|
| 85 |
|
| 86 |
def update_direct_steering_options(prompt_type):
|
|
|
|
| 43 |
print(political_statement)
|
| 44 |
|
| 45 |
if prompt_manipulation == "Impersonation (direct steering)":
|
| 46 |
+
prompt = f"""Du bist ein Politiker der Partei {direct_steering_option}. {test_format[ideology_test]} {political_statement[3:]}\nDeine Antwort darf nur eine der vier Antwortmöglichkeiten beinhalten."""
|
| 47 |
|
| 48 |
else:
|
| 49 |
prompt = f"""[INST] {political_statement} [/INST]"""
|
|
|
|
| 80 |
|
| 81 |
return gr.Dropdown(choices=choices,
|
| 82 |
label="Political statement",
|
| 83 |
+
value=choices[0]
|
| 84 |
allow_custom_value=True)
|
| 85 |
|
| 86 |
def update_direct_steering_options(prompt_type):
|