Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import pandas as pd
|
| 3 |
+
|
| 4 |
+
def predict(file_obj):
|
| 5 |
+
df = pd.read_csv(file_obj)
|
| 6 |
+
return df
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
iface = gr.Interface(predict,inputs="file",outputs="dataframe",title='Cramer V Test',description="Cramer Test")
|
| 10 |
+
iface.launch(inline=False)
|