da03 commited on
Commit
cf0cf7e
·
1 Parent(s): 9a65236
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -119,13 +119,14 @@ def predict_product(num1, num2):
119
 
120
  yield ground_truth_digits_digits, predicted_results_implicit, predicted_results_nocot, predicted_results_explicit_cot
121
 
 
 
122
  demo = gr.Interface(
123
  fn=predict_product,
124
  inputs=[
125
  gr.Textbox(label='First Number (up to 12 digits)', value='123456789'),
126
  gr.Textbox(label='Second Number (up to 12 digits)', value='987654321'),
127
  ],
128
- color_map = {"correct": "green", "wrong": "red"}
129
  outputs=[
130
  gr.HighlightedText(label='Ground Truth Product', combine_adjacent=False, show_legend=False, color_map=color_map),
131
  gr.HighlightedText(label='Implicit CoT Predicted Product', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),
 
119
 
120
  yield ground_truth_digits_digits, predicted_results_implicit, predicted_results_nocot, predicted_results_explicit_cot
121
 
122
+ color_map = {"correct": "green", "wrong": "red"}
123
+
124
  demo = gr.Interface(
125
  fn=predict_product,
126
  inputs=[
127
  gr.Textbox(label='First Number (up to 12 digits)', value='123456789'),
128
  gr.Textbox(label='Second Number (up to 12 digits)', value='987654321'),
129
  ],
 
130
  outputs=[
131
  gr.HighlightedText(label='Ground Truth Product', combine_adjacent=False, show_legend=False, color_map=color_map),
132
  gr.HighlightedText(label='Implicit CoT Predicted Product', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),