kataniccc commited on
Commit
56cb03d
1 Parent(s): ddd9366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1,4 +1,17 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
 
1
  import gradio as gr
2
+ import pandas as pd
3
+
4
+ df = pd.read_csv(path/'train.csv')
5
+
6
+ df.describe(include='object')
7
+
8
+ df['input'] = 'TEXT1: ' + df.context + '; TEXT2: ' + df.target + '; ANC1: ' + df.anchor
9
+
10
+ df.input.head()
11
+
12
+ from datasets import Dataset,DatasetDict
13
+
14
+ ds = Dataset.from_pandas(df)
15
 
16
  def greet(name):
17
  return "Hello " + name + "!!"