SIVAPRASATH commited on
Commit
5dba94f
·
1 Parent(s): 86e70d1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+ import pandas as pd
4
+ --upgrade pip
5
+ table = pd.read_csv("AI-B general queries.csv")
6
+ table = table.astype(str)
7
+
8
+ def input_query(query):
9
+ return (tqa(table=table,query=query)['answer'])
10
+
11
+ iface = gr.Interface(fn=input_query,inputs="text",outputs="text", title = "Siva's Assistant",description="My assistant will answer the queries related to our section's Faculty Name,Faculty Mobile Number,Faculity Cabin Number,Classroom Number,Timetable of the class for each subject")
12
+
13
+ iface.launch()
14
+