jwalanthi commited on
Commit
33ddbbb
1 Parent(s): d8a5bfe

trying to capitalize output in demo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,8 +44,8 @@ def predict (Sentence, Word, LLM, Norm, Layer):
44
  df_sorted = df.sort_values(by='value', ascending=False)
45
  df_sorted = df_sorted.reset_index()
46
 
47
- output = [row['feature']+'\t\t\t\t\t\t\t'+str(row['value']) for _, row in df_sorted.iterrows()]
48
- return "All Positive Predicted Values:\n"+"\n".join(output)
49
 
50
  demo = gr.Interface(
51
  fn=predict,
 
44
  df_sorted = df.sort_values(by='value', ascending=False)
45
  df_sorted = df_sorted.reset_index()
46
 
47
+ Output = [row['feature']+'\t\t\t\t\t\t\t'+str(row['value']) for _, row in df_sorted.iterrows()]
48
+ return "All Positive Predicted Values:\n"+"\n".join(Output)
49
 
50
  demo = gr.Interface(
51
  fn=predict,