Spaces:
Sleeping
Sleeping
Upload compare_gradio.py
Browse files- compare_gradio.py +3 -5
compare_gradio.py
CHANGED
@@ -21,7 +21,7 @@ API_URL = os.getenv("API_URL")
|
|
21 |
API_KEY = os.getenv("API_KEY")
|
22 |
|
23 |
auth_token = os.environ.get("TOKEN") or True
|
24 |
-
hf_repo = "Iker/
|
25 |
huggingface_hub.create_repo(
|
26 |
repo_id=hf_repo,
|
27 |
repo_type="dataset",
|
@@ -35,7 +35,7 @@ headers = {"X-API-Key": API_KEY, "Content-Type": "application/json"}
|
|
35 |
|
36 |
|
37 |
def update_models():
|
38 |
-
models = ["pro", "pro-
|
39 |
|
40 |
# Randomly select if we want to use pro or turbo models
|
41 |
# if random.random() < 0.5:
|
@@ -123,9 +123,7 @@ def format_response(response):
|
|
123 |
for q, a in rq.items():
|
124 |
rq_block.append("**{}**\n{}".format(q, a))
|
125 |
|
126 |
-
return "## {}\n\n### {}\n\n{}\n\n{}".format(
|
127 |
-
title, main_claim, fc, "\n".join(rq_block)
|
128 |
-
)
|
129 |
|
130 |
|
131 |
def do_both_fact_checking(msg):
|
|
|
21 |
API_KEY = os.getenv("API_KEY")
|
22 |
|
23 |
auth_token = os.environ.get("TOKEN") or True
|
24 |
+
hf_repo = "Iker/Feedback_FactCheking_Mar4"
|
25 |
huggingface_hub.create_repo(
|
26 |
repo_id=hf_repo,
|
27 |
repo_type="dataset",
|
|
|
35 |
|
36 |
|
37 |
def update_models():
|
38 |
+
models = ["pro", "pro-gpt", "pro-rag", "pro-rag-gpt"]
|
39 |
|
40 |
# Randomly select if we want to use pro or turbo models
|
41 |
# if random.random() < 0.5:
|
|
|
123 |
for q, a in rq.items():
|
124 |
rq_block.append("**{}**\n{}".format(q, a))
|
125 |
|
126 |
+
return "## {}\n\n### {}\n\n{}\n\n{}".format(title, main_claim, fc, "\n".join(rq_block))
|
|
|
|
|
127 |
|
128 |
|
129 |
def do_both_fact_checking(msg):
|