Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,7 @@ sys.path.append(os.path.abspath('common'))
|
|
| 10 |
from crewai import Crew, Task, Process
|
| 11 |
from RespondentAgent import *
|
| 12 |
from LLMConfig import *
|
|
|
|
| 13 |
|
| 14 |
# Configure logging
|
| 15 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
@@ -218,7 +219,7 @@ A culturally authentic and conversational response to the question: '{question}'
|
|
| 218 |
|
| 219 |
return responses
|
| 220 |
|
| 221 |
-
def
|
| 222 |
logging.info("Building Gradio interface...")
|
| 223 |
|
| 224 |
# Hardcoded test panelists
|
|
@@ -301,7 +302,7 @@ def build_interface():
|
|
| 301 |
return demo
|
| 302 |
|
| 303 |
|
| 304 |
-
def
|
| 305 |
"""
|
| 306 |
Handles chatbot interaction. Can be used both in Gradio and from MAIN.
|
| 307 |
"""
|
|
|
|
| 10 |
from crewai import Crew, Task, Process
|
| 11 |
from RespondentAgent import *
|
| 12 |
from LLMConfig import *
|
| 13 |
+
from PanelInterface import *
|
| 14 |
|
| 15 |
# Configure logging
|
| 16 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
| 219 |
|
| 220 |
return responses
|
| 221 |
|
| 222 |
+
def build_interface_XXX():
|
| 223 |
logging.info("Building Gradio interface...")
|
| 224 |
|
| 225 |
# Hardcoded test panelists
|
|
|
|
| 302 |
return demo
|
| 303 |
|
| 304 |
|
| 305 |
+
def chatbot_interface_XXX(message, history=None):
|
| 306 |
"""
|
| 307 |
Handles chatbot interaction. Can be used both in Gradio and from MAIN.
|
| 308 |
"""
|