Spaces:
Build error
Build error
Commit ·
5fb3fab
1
Parent(s): 9926321
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,17 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|