in the Jupyter notebook the cell 'Build a gradio UI' errors out on line:
(textbox
.submit(
fn=azure_enterprise_chat,
inputs=[textbox, chatbot],
outputs=[chatbot, textbox],
)
ERROR Has:
File ~\AppData\Local\Programs\Python\Python311\Lib\typing.py:878 in init
code = compile(arg_to_compile, '', 'eval')
File <string>:1
westus3.api.azureml.ms;7fe57343-c44c-43bd-98e4-a33de0c6e237;gw25agent1;agentsEntDemo
^
SyntaxError: invalid decimal literal
the actual error may be above in line:
def azure_enterprise_chat(user_message: str, history: List[dict]):
where in that line there is a warning from Pylance "variable not allowed in type expression"
Any fixes or suggestions ?