Commit
·
5a21c8c
1
Parent(s):
d42de93
upv1
Browse files
app.py
CHANGED
|
@@ -520,8 +520,6 @@ async def stream_agent_response(question: str, chat_history: List[List[str]]) ->
|
|
| 520 |
try:
|
| 521 |
if isinstance(query_result, str) and '|' in query_result and '---' in query_result:
|
| 522 |
# Convert markdown table to DataFrame
|
| 523 |
-
from io import StringIO
|
| 524 |
-
import re
|
| 525 |
|
| 526 |
# Clean up the markdown table
|
| 527 |
lines = [line.strip() for line in query_result.split('\n')
|
|
|
|
| 520 |
try:
|
| 521 |
if isinstance(query_result, str) and '|' in query_result and '---' in query_result:
|
| 522 |
# Convert markdown table to DataFrame
|
|
|
|
|
|
|
| 523 |
|
| 524 |
# Clean up the markdown table
|
| 525 |
lines = [line.strip() for line in query_result.split('\n')
|