YuchenZeng commited on
Commit
f5dec47
1 Parent(s): 4c701e9

create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import gradio as gr
3
+
4
+
5
+ def example_fn(text):
6
+ d = {'c1': ["This is col 1"], 'c2': ["This is col 2"], 'c3': ["This is col 3"],
7
+ 'c4': ["This is col 4"], 'c5': ["This is col 5"],
8
+ 'c6': ["This is col 6"], 'c7': ["This is col 7"]}
9
+ df = pd.DataFrame(data=d)
10
+ return df
11
+
12
+ demo = gr.Interface(
13
+ fn = example_fn,
14
+ inputs = [gr.Textbox(label="Input", lines=3, )
15
+ ],
16
+ outputs = [gr.DataFrame()],
17
+ title="Test",
18
+ allow_flagging=False,
19
+ )
20
+
21
+ demo.launch()