amir22010 commited on
Commit
a3d7b1c
·
1 Parent(s): 2f9f7c4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -34,6 +34,11 @@ def perform_asde_inference(text, dataset, model_id):
34
  df = pd.read_csv('pyabsa_english.csv')
35
  random_i = np.random.randint(low=0, high=df.shape[0], size=(1,)).flat[0]
36
  selected_df = df.iloc[random_i]
 
 
 
 
 
37
  text = str(selected_df['clean_text'].iloc[0])
38
  true_aspect = str(selected_df['actual_aspects'].iloc[0])
39
  true_sentiment = str(selected_df['actual_sentiments'].iloc[0])
 
34
  df = pd.read_csv('pyabsa_english.csv')
35
  random_i = np.random.randint(low=0, high=df.shape[0], size=(1,)).flat[0]
36
  selected_df = df.iloc[random_i]
37
+ print(selected_df.head())
38
+ print(type(selected_df['clean_text']))
39
+ print(selected_df['clean_text'])
40
+ print(selected_df['actual_aspects'])
41
+ print(selected_df['actual_sentiments'])
42
  text = str(selected_df['clean_text'].iloc[0])
43
  true_aspect = str(selected_df['actual_aspects'].iloc[0])
44
  true_sentiment = str(selected_df['actual_sentiments'].iloc[0])