Update app.py
Browse filesminor changes of layout
app.py
CHANGED
|
@@ -46,16 +46,19 @@ with gr.Blocks() as demo:
|
|
| 46 |
with gr.Column():
|
| 47 |
input_text = gr.Textbox(label = "Write your riddle here", placeholder="Type here the riddles to see if LM can solve the questions", lines=4)
|
| 48 |
with gr.Row():
|
| 49 |
-
btn = gr.Button("Laguage model think brrr")
|
| 50 |
|
| 51 |
example_text = gr.Dataset(components=[input_text], samples=examples)
|
| 52 |
example_text.click(fn=set_example,
|
| 53 |
inputs = example_text,
|
| 54 |
outputs= example_text.components)
|
| 55 |
-
|
|
|
|
|
|
|
| 56 |
btn.click(complete_with_gpt, inputs = input_text, outputs = [gr.Textbox(label=name_list[_], lines=4) for _ in range(len(name_list))])
|
| 57 |
|
| 58 |
with gr.Column():
|
|
|
|
| 59 |
num1 = gr.Number(placeholder="Type here the first number", lines=1)
|
| 60 |
num2 = gr.Number(placeholder="Type here the second number", lines=1)
|
| 61 |
operation = gr.Dropdown(["add", "subtract", "multiply", "divide"], placeholder="Type here the operation", lines=1)
|
|
|
|
| 46 |
with gr.Column():
|
| 47 |
input_text = gr.Textbox(label = "Write your riddle here", placeholder="Type here the riddles to see if LM can solve the questions", lines=4)
|
| 48 |
with gr.Row():
|
| 49 |
+
btn = gr.Button("Laguage model think brrr ...")
|
| 50 |
|
| 51 |
example_text = gr.Dataset(components=[input_text], samples=examples)
|
| 52 |
example_text.click(fn=set_example,
|
| 53 |
inputs = example_text,
|
| 54 |
outputs= example_text.components)
|
| 55 |
+
|
| 56 |
+
with gr.Column():
|
| 57 |
+
gr.Markdown("Let's see how different LM's multiply matrices/ think 💭")
|
| 58 |
btn.click(complete_with_gpt, inputs = input_text, outputs = [gr.Textbox(label=name_list[_], lines=4) for _ in range(len(name_list))])
|
| 59 |
|
| 60 |
with gr.Column():
|
| 61 |
+
gr.Markdown("In case you need to count to verify the answer, you can use the calculator below 😉 ")
|
| 62 |
num1 = gr.Number(placeholder="Type here the first number", lines=1)
|
| 63 |
num2 = gr.Number(placeholder="Type here the second number", lines=1)
|
| 64 |
operation = gr.Dropdown(["add", "subtract", "multiply", "divide"], placeholder="Type here the operation", lines=1)
|