Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ anyscale_base_url = "https://api.endpoints.anyscale.com/v1"
|
|
9 |
multilingual_embeddings = embedding_functions.SentenceTransformerEmbeddingFunction(model_name="jost/multilingual-e5-base-politics-de")
|
10 |
|
11 |
pct_prompt = """Beantworte das folgende Statement mit 'Deutliche Ablehnung', 'Ablehnung', 'Zustimmung' oder 'Deutliche Zustimmung':"""
|
|
|
12 |
|
13 |
def load_json_data(filepath):
|
14 |
with open(filepath, 'r', encoding='utf-8') as file:
|
@@ -88,7 +89,7 @@ def update_direct_steering_options(prompt_type):
|
|
88 |
|
89 |
def main():
|
90 |
description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
|
91 |
-
with gr.Blocks() as demo:
|
92 |
|
93 |
# Ideology Test drowndown
|
94 |
with gr.Tab("App"):
|
|
|
9 |
multilingual_embeddings = embedding_functions.SentenceTransformerEmbeddingFunction(model_name="jost/multilingual-e5-base-politics-de")
|
10 |
|
11 |
pct_prompt = """Beantworte das folgende Statement mit 'Deutliche Ablehnung', 'Ablehnung', 'Zustimmung' oder 'Deutliche Zustimmung':"""
|
12 |
+
wahlomat_prompt = """Beantworte das folgende Statement mit 'Stimme zu', 'Neutral', oder 'Stimme nicht zu':"""
|
13 |
|
14 |
def load_json_data(filepath):
|
15 |
with open(filepath, 'r', encoding='utf-8') as file:
|
|
|
89 |
|
90 |
def main():
|
91 |
description = "This is a simple interface to compare two model prodided by Anyscale. Please enter your API key and your message."
|
92 |
+
with gr.Blocks(theme="huggingface") as demo:
|
93 |
|
94 |
# Ideology Test drowndown
|
95 |
with gr.Tab("App"):
|