Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,22 +11,6 @@ import plotly.express as px
|
|
| 11 |
from PIL import Image
|
| 12 |
|
| 13 |
|
| 14 |
-
Can you take in a .csv file as an input to conduct data analysis?
|
| 15 |
-
ChatGPT
|
| 16 |
-
Yes, I can take in a .csv file and perform various types of data analysis on it. You can upload the .csv file, and let me know what specific analysis or processing you would like to perform.
|
| 17 |
-
|
| 18 |
-
import gradio as gr
|
| 19 |
-
import pandas as pd
|
| 20 |
-
from sklearn.feature_extraction.text import TfidfVectorizer
|
| 21 |
-
from sklearn.cluster import KMeans
|
| 22 |
-
import re
|
| 23 |
-
from io import BytesIO
|
| 24 |
-
import tempfile
|
| 25 |
-
from wordcloud import WordCloud, STOPWORDS
|
| 26 |
-
import matplotlib.pyplot as plt
|
| 27 |
-
import plotly.express as px
|
| 28 |
-
from PIL import Image
|
| 29 |
-
|
| 30 |
categories_keywords = {
|
| 31 |
"Application Status": ["application status", "application", "status", "submitted", "processing", "pending", "approval", "rejected", "accepted"],
|
| 32 |
"Volunteering": ["volunteer", "volunteering", "help out", "assist", "volunteer work", "volunteer opportunities"],
|
|
|
|
| 11 |
from PIL import Image
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
categories_keywords = {
|
| 15 |
"Application Status": ["application status", "application", "status", "submitted", "processing", "pending", "approval", "rejected", "accepted"],
|
| 16 |
"Volunteering": ["volunteer", "volunteering", "help out", "assist", "volunteer work", "volunteer opportunities"],
|