sanketmalde commited on
Commit
5fb3fab
·
1 Parent(s): 9926321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -1,9 +1,17 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!"
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
7
 
8
  if __name__ == "__main__":
9
  demo.launch(show_api=False)
 
1
  import gradio as gr
2
+ import pandas as pd
3
 
4
+ def readCSV(file):
5
+ # Read the CSV file into a DataFrame
6
+ df = pd.read_csv(csv_file_path)
7
 
8
+ # Display the DataFrame
9
+ return "The DF is: " + df
10
+
11
+ #def greet(name):
12
+ # return "Hello " + name + "!"
13
+
14
+ demo = gr.Interface(fn=readCSV, inputs="text", outputs="text")
15
 
16
  if __name__ == "__main__":
17
  demo.launch(show_api=False)