This repository describe 'SimpleITK' which python module is inheritence by 3D voxel image processing module 'ITK'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def encode_categorical(df, cols): | |
for col in cols: | |
# Leave NaN as it is. | |
le = LabelEncoder() | |
not_null = df[col][df[col].notnull()] | |
df[col] = pd.Series(le.fit_transform(not_null), index=not_null.index) | |
return df |
[WIP]
[WIP]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import AsyncIterator | |
import gradio as gr | |
from openai import AsyncOpenAI | |
client = AsyncOpenAI() | |
async def fetch_gpt_response( | |
prompt: str, model: str = "gpt-3.5-turbo" |