Spaces:
Sleeping
Sleeping
trying to capitalize output in demo
Browse files
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 |
-
|
48 |
-
return "All Positive Predicted Values:\n"+"\n".join(
|
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,
|