LiuYunhui
commited on
Commit
·
38f046a
1
Parent(s):
2c68a4f
Fix dataframe headers
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def analysis(Text):
|
|
47 |
MODEL_MAPPING = {
|
48 |
'Random': RandomAnalyser(),
|
49 |
'RoBERTa': RoBERTaAnalyser(),
|
50 |
-
'ChatGPT':
|
51 |
}
|
52 |
|
53 |
OUR_MODEL = 'RoBERTa'
|
@@ -108,7 +108,7 @@ with gr.Blocks(title=TITLE) as demo:
|
|
108 |
cm_plot = gr.Plot(label='Confusion Matrix')
|
109 |
|
110 |
with gr.Row():
|
111 |
-
dataframe = gr.Dataframe(type="pandas", wrap=True)
|
112 |
|
113 |
input_n_samples.change(fn=classify, inputs=input_n_samples, outputs=[dataframe, bar_plot, cm_plot])
|
114 |
|
|
|
47 |
MODEL_MAPPING = {
|
48 |
'Random': RandomAnalyser(),
|
49 |
'RoBERTa': RoBERTaAnalyser(),
|
50 |
+
'ChatGPT': RandomAnalyser(),
|
51 |
}
|
52 |
|
53 |
OUR_MODEL = 'RoBERTa'
|
|
|
108 |
cm_plot = gr.Plot(label='Confusion Matrix')
|
109 |
|
110 |
with gr.Row():
|
111 |
+
dataframe = gr.Dataframe(type="pandas", wrap=True, headers=['Text', 'Label', 'Predict'])
|
112 |
|
113 |
input_n_samples.change(fn=classify, inputs=input_n_samples, outputs=[dataframe, bar_plot, cm_plot])
|
114 |
|