anandshah7 commited on
Commit
2040d54
1 Parent(s): 2610e8f

initial commit

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *psd filter=lfs diff=lfs merge=lfs -text
37
+ .xlsx filter=lfs diff=lfs merge=lfs -text
38
+ cluster_label_final.xlsx filter=lfs diff=lfs merge=lfs -text
39
+ cluster_fin_iter1.xlsx filter=lfs diff=lfs merge=lfs -text
.idea/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
.idea/SupportTicket.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Python 3.9" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
7
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/SupportTicket.iml" filepath="$PROJECT_DIR$/.idea/SupportTicket.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
app.py ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import pandas as pd
3
+ import matplotlib
4
+ import matplotlib.pyplot as plt
5
+ import numpy as np
6
+ import openpyxl
7
+
8
+ file_name = "cluster_fin_iter1.xlsx"
9
+ def greet(name, intensity):
10
+ return "Hello, " + name + "!" * int(intensity)
11
+ def get_data():
12
+ df = pd.read_excel(file_name)
13
+
14
+ return df
15
+
16
+ def echo(message, history):
17
+ return message["text"]
18
+ def bar_plot_fn():
19
+ new_df = []
20
+ df = get_data()
21
+ bar_df = df['cluster'].value_counts().to_frame('count').rename_axis('cluster').reset_index()
22
+ label_df = pd.read_excel("cluster_label_final.xlsx")
23
+ df_merge_label = pd.merge(bar_df,label_df,"left",on="cluster")
24
+
25
+
26
+ print(bar_df)
27
+ fig = plt.figure()
28
+ return gr.BarPlot(
29
+ value=df_merge_label,
30
+ x='cluster',
31
+ y='count',
32
+ title="Automated Ticketing system",
33
+ tooltip=["cluster","New_label", "count"],
34
+ y_lim=[10, 4000],
35
+ )
36
+ # __________________
37
+ with gr.Blocks() as bar_plot:
38
+ with gr.Row():
39
+ with gr.Column():
40
+ plot = gr.BarPlot()
41
+ with gr.Row():
42
+ with gr.Column():
43
+ gr.ChatInterface(
44
+ fn=echo,
45
+ examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
46
+ title="AI Agent For ATS",
47
+ multimodal=True)
48
+
49
+ bar_plot.load(fn=bar_plot_fn, outputs=plot)
50
+
51
+ bar_plot.launch(share=True)
52
+
cluster_fin_iter1.xlsx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62b333eb7b34006fa8a0d79c59df92791ac33df1b36a3ee287795e0be2a82111
3
+ size 6872953
cluster_label_final.xlsx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4b452bdecb2e06563a366a7d9301010c7f13dd187e4c4011316ce8523c357e2
3
+ size 8787