Skip to content

error in gradio call with reference to fn azure_enterprise_chat #15

@gw37

Description

@gw37

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions