Spaces:
Build error
Build error
Update PanelInterface.py
Browse files- PanelInterface.py +3 -3
PanelInterface.py
CHANGED
|
@@ -9,7 +9,7 @@ from InteractiveInterviewChatbot import *
|
|
| 9 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 10 |
|
| 11 |
|
| 12 |
-
def load_panelists_from_excel(file_path="config/genzheroes/
|
| 13 |
df = pd.read_excel(file_path)
|
| 14 |
return df.to_dict(orient="records")
|
| 15 |
|
|
@@ -65,10 +65,10 @@ def build_interface(respondent_agents_dict, processor_llm):
|
|
| 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>"
|
| 67 |
for p in panelists
|
| 68 |
-
|
| 69 |
|
| 70 |
# Load UI texts from Excel
|
| 71 |
-
ui_texts = load_ui_texts_from_excel("config/
|
| 72 |
|
| 73 |
with gr.Blocks(css="assets/custom.css") as demo:
|
| 74 |
with gr.Row(elem_classes="logo-row"):
|
|
|
|
| 9 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 10 |
|
| 11 |
|
| 12 |
+
def load_panelists_from_excel(file_path="config/genzheroes/panelist_details.xlsx"):
|
| 13 |
df = pd.read_excel(file_path)
|
| 14 |
return df.to_dict(orient="records")
|
| 15 |
|
|
|
|
| 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>"
|
| 67 |
for p in panelists
|
| 68 |
+
)
|
| 69 |
|
| 70 |
# Load UI texts from Excel
|
| 71 |
+
ui_texts = load_ui_texts_from_excel("config/ui_texts.xlsx")
|
| 72 |
|
| 73 |
with gr.Blocks(css="assets/custom.css") as demo:
|
| 74 |
with gr.Row(elem_classes="logo-row"):
|