Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
·
a16dab3
1
Parent(s):
8ee7a60
app.py
CHANGED
|
@@ -116,12 +116,12 @@ def predict_product(num1, num2):
|
|
| 116 |
demo = gr.Interface(
|
| 117 |
fn=predict_product,
|
| 118 |
inputs=[
|
| 119 |
-
gr.Textbox(label='First Number (up to 12 digits)', value='
|
| 120 |
-
gr.Textbox(label='Second Number (up to 12 digits)', value='
|
| 121 |
],
|
| 122 |
outputs=[
|
| 123 |
gr.HighlightedText(label='Ground Truth Product', combine_adjacent=False, show_legend=False, color_map={"-": "green", "+": "red"}),
|
| 124 |
-
gr.HighlightedText(label='GPT2 Predicted Product', combine_adjacent=False, show_legend=False, color_map={"-": "green", "+": "red"}),
|
| 125 |
gr.HTML(label='Result Message')
|
| 126 |
],
|
| 127 |
title='GPT2 Direct Multiplication Calculator (Without Using Chain-of-Thought)',
|
|
|
|
| 116 |
demo = gr.Interface(
|
| 117 |
fn=predict_product,
|
| 118 |
inputs=[
|
| 119 |
+
gr.Textbox(label='First Number (up to 12 digits)', value='123456789'),
|
| 120 |
+
gr.Textbox(label='Second Number (up to 12 digits)', value='987654321'),
|
| 121 |
],
|
| 122 |
outputs=[
|
| 123 |
gr.HighlightedText(label='Ground Truth Product', combine_adjacent=False, show_legend=False, color_map={"-": "green", "+": "red"}),
|
| 124 |
+
gr.HighlightedText(label='GPT2 Predicted Product', combine_adjacent=False, show_legend=False, color_map={"-": "green", "+": "red"}, show_inline_category=False),
|
| 125 |
gr.HTML(label='Result Message')
|
| 126 |
],
|
| 127 |
title='GPT2 Direct Multiplication Calculator (Without Using Chain-of-Thought)',
|