Spaces:
Build error
Build error
Update PanelInterface.py
Browse files- PanelInterface.py +2 -2
PanelInterface.py
CHANGED
|
@@ -60,7 +60,7 @@ def build_interface(respondent_agents_dict, processor_llm):
|
|
| 60 |
logging.info("Building Gradio interface...")
|
| 61 |
|
| 62 |
# Load panelists from Excel
|
| 63 |
-
panelists = load_panelists_from_excel("config/genzheroes/hugging_face_details.xlsx"
|
| 64 |
bios_js_object = {p["ID"]: f"<b>{p['Name']}</b><br>{p['Description']}<br><br>{p['Bio']}" for p in panelists}
|
| 65 |
panel_html = "".join(
|
| 66 |
f"<p><a href='javascript:void(0);' onclick='showModal(event, \"{p['ID']}\"); return false;'><b>{p['Name']}</b></a> – {p['Description']}</p>"
|
|
@@ -68,7 +68,7 @@ def build_interface(respondent_agents_dict, processor_llm):
|
|
| 68 |
)
|
| 69 |
|
| 70 |
# Load UI texts from Excel
|
| 71 |
-
ui_texts = load_ui_texts_from_excel(
|
| 72 |
|
| 73 |
with gr.Blocks(css="assets/custom.css") as demo:
|
| 74 |
with gr.Row(elem_classes="logo-row"):
|
|
|
|
| 60 |
logging.info("Building Gradio interface...")
|
| 61 |
|
| 62 |
# Load panelists from Excel
|
| 63 |
+
panelists = load_panelists_from_excel("config/genzheroes/hugging_face_details.xlsx")
|
| 64 |
bios_js_object = {p["ID"]: f"<b>{p['Name']}</b><br>{p['Description']}<br><br>{p['Bio']}" for p in panelists}
|
| 65 |
panel_html = "".join(
|
| 66 |
f"<p><a href='javascript:void(0);' onclick='showModal(event, \"{p['ID']}\"); return false;'><b>{p['Name']}</b></a> – {p['Description']}</p>"
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
# Load UI texts from Excel
|
| 71 |
+
ui_texts = load_ui_texts_from_excel()
|
| 72 |
|
| 73 |
with gr.Blocks(css="assets/custom.css") as demo:
|
| 74 |
with gr.Row(elem_classes="logo-row"):
|