I got below error when running math_demo.ipynb, do you know what is wrong here ?
TypeError Traceback (most recent call last)
Cell In[6], line 1
----> 1 gradio = show(math_demo,
2 examples=["What is the sum of the powers of 3 (3^i) that are smaller than 100?",
3 "What is the sum of the 10 first positive integers?",],
4 # "Carla is downloading a 200 GB file. She can download 2 GB/minute, but 40% of the way through the download, the download fails. Then Carla has to restart the download from the beginning. How load did it take her to download the file in minutes?"],
5 subprompts=[math_prompt, python],
6 out_type="json",
7 description=desc,
8 )
9 if name == "main":
10 gradio.launch()
File ~\anaconda3\envs\sicl-llm\lib\site-packages\minichain\gradio.py:316, in show(prompt, examples, subprompts, fields, initial_state, out_type, keys, description, code, css, show_advanced)
314 inputs = list([gr.Textbox(label=f) for f in fields])
315 examples = gr.Examples(examples=examples, inputs=inputs)
--> 316 query_btn = gr.Button(label="Run")
317 constructor = constructor.add_inputs(inputs)
319 with gr.Box():
320 # Intermediate prompt displays
I got below error when running math_demo.ipynb, do you know what is wrong here ?
TypeError Traceback (most recent call last) Cell In[6], line 1 ----> 1 gradio = show(math_demo, 2 examples=["What is the sum of the powers of 3 (3^i) that are smaller than 100?", 3 "What is the sum of the 10 first positive integers?",], 4 # "Carla is downloading a 200 GB file. She can download 2 GB/minute, but 40% of the way through the download, the download fails. Then Carla has to restart the download from the beginning. How load did it take her to download the file in minutes?"], 5 subprompts=[math_prompt, python], 6 out_type="json", 7 description=desc, 8 ) 9 if name == "main": 10 gradio.launch()
File ~\anaconda3\envs\sicl-llm\lib\site-packages\minichain\gradio.py:316, in show(prompt, examples, subprompts, fields, initial_state, out_type, keys, description, code, css, show_advanced) 314 inputs = list([gr.Textbox(label=f) for f in fields]) 315 examples = gr.Examples(examples=examples, inputs=inputs) --> 316 query_btn = gr.Button(label="Run") 317 constructor = constructor.add_inputs(inputs) 319 with gr.Box(): 320 # Intermediate prompt displays
File ~\anaconda3\envs\sicl-llm\lib\site-packages\gradio\component_meta.py:157, in updateable..wrapper(*args, kwargs)
155 return None
156 else:
--> 157 return fn(self, kwargs)
TypeError: init() got an unexpected keyword argument 'label'