Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from groq import Groq
|
|
| 5 |
import pandas as pd
|
| 6 |
import speech_recognition as sr
|
| 7 |
import pyttsx3
|
|
|
|
| 8 |
|
| 9 |
# API_KEY (Replace with your actual Groq API key)
|
| 10 |
API = "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"
|
|
@@ -43,7 +44,7 @@ def analyze_file_data(data):
|
|
| 43 |
- π Total Rows: {data.shape[0]}
|
| 44 |
- π Total Columns: {data.shape[1]}
|
| 45 |
- First Few Rows:
|
| 46 |
-
{data.head()
|
| 47 |
"""
|
| 48 |
return response
|
| 49 |
|
|
|
|
| 5 |
import pandas as pd
|
| 6 |
import speech_recognition as sr
|
| 7 |
import pyttsx3
|
| 8 |
+
from tabulate import tabulate # Import tabulate for better table formatting
|
| 9 |
|
| 10 |
# API_KEY (Replace with your actual Groq API key)
|
| 11 |
API = "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"
|
|
|
|
| 44 |
- π Total Rows: {data.shape[0]}
|
| 45 |
- π Total Columns: {data.shape[1]}
|
| 46 |
- First Few Rows:
|
| 47 |
+
{tabulate.tabulate(data.head(), headers='keys', tablefmt='pipe')} # Use tabulate for better table formatting
|
| 48 |
"""
|
| 49 |
return response
|
| 50 |
|