jiehou commited on
Commit
fba41b9
·
1 Parent(s): 224a0e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import gradio as gr
10
 
11
 
12
  set_input = gr.inputs.Dataframe(type="numpy", row_count=10, col_count=3, headers=['Sample Index', 'Predicted Prob', 'Label (Y)'], datatype=["number", "number", "number"])
13
- set_input2 = gr.inputs.Slider(0, 1, step = 0.1, default=0.4)
14
 
15
  #set_output = gr.inputs.Textbox(label ='test')
16
  set_output1 = gr.outputs.Dataframe(type="pandas", label = 'Predicted Labels',max_rows=10)
@@ -165,7 +165,7 @@ interface = gr.Interface(fn=visualize_ROC,
165
  [0.5,get_example()],
166
  [0.7,get_example()],
167
  ],
168
- title="CSCI4750/5750: ROC curve",
169
  description= "Click examples below for a quick demo",
170
  theme = 'huggingface',
171
  layout = 'horizontal',
 
10
 
11
 
12
  set_input = gr.inputs.Dataframe(type="numpy", row_count=10, col_count=3, headers=['Sample Index', 'Predicted Prob', 'Label (Y)'], datatype=["number", "number", "number"])
13
+ set_input2 = gr.inputs.Slider(0, 1, step = 0.1, default=0.4, label="Set Probability Threshold (Default = 0.5)")
14
 
15
  #set_output = gr.inputs.Textbox(label ='test')
16
  set_output1 = gr.outputs.Dataframe(type="pandas", label = 'Predicted Labels',max_rows=10)
 
165
  [0.5,get_example()],
166
  [0.7,get_example()],
167
  ],
168
+ title="CSCI4750/5750: Demo for ROC curve",
169
  description= "Click examples below for a quick demo",
170
  theme = 'huggingface',
171
  layout = 'horizontal',