Skip to content

Configure InferCode parser to parse specific language #23

@Avv22

Description

@Avv22

Hello,
Is the following correct to setup the parser to read python code please?

from infercode.client.infercode_client import InferCodeClient
import os
import logging
logging.basicConfig(level=logging.INFO)

# Change from -1 to 0 to enable GPU
os.environ['CUDA_VISIBLE_DEVICES'] = "-1"

infercode = InferCodeClient(language="python")

Also for Java and other languages, should we use language="julia", language="java" etc.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions