# tou need to do: # pip install gradio_client from gradio_client import Client OUTPUT_DIR = './' # foldeer for saving results of response client = Client("https://ligolab-demo-icd10.hf.space/", output_dir=OUTPUT_DIR) input_text = "Microscopic Evaluation: The specimen is excised into the reticular dermis and demonstrates skin with prominent papillomatosis and hyperkeratosis. The keratinocytes show reactive changes with nuclear enlargement and increased amounts of cytoplasm but no dysplasia is identified. Lymphocytic inflammation is distributed through the base of the lesion. Some pigmentation is present. The lesion approximates the edges of the specimen but appears to be predominantly excised. (GMW/jc) Gross Description: Shave removal and destruction erythematous tender papule with hyperkeratotic scale SCC vs BCC D.. Right medial temple. Final Diagnosis: Pigmented seborrheic keratosis inflamed." result = client.predict( input_text, api_name="/predict" ) print('results save at:', result)