Spaces:
Runtime error
Runtime error
Download Models/TemporaryConfig.cs from yashW2022/FoodHealthCheckerHF: direct link, hf CLI and curl.
- Browser
- Download file 754 Bytes
-
https://huggingface.co/spaces/yashW2022/FoodHealthCheckerHF/resolve/main/Models/TemporaryConfig.cs
- Command line
-
hf download hf://spaces/yashW2022/FoodHealthCheckerHF/Models/TemporaryConfig.cs
-
curl -L -o TemporaryConfig.cs https://huggingface.co/spaces/yashW2022/FoodHealthCheckerHF/resolve/main/Models/TemporaryConfig.cs
754 Bytes
| namespace FoodHealthChecker.Models | |
| { | |
| public class TemporaryConfig | |
| { | |
| public string AzureOpenAI_DeploymentName { get; set; } | |
| public string AzureOpenAI_Endpoint { get; set; } | |
| public string AzureOpenAI_ApiKey { get; set; } | |
| public string OpenAI_ModelId { get; set; } | |
| public string OpenAI_ApiKey { get; set; } | |
| public bool isAzureOpenAIConfigValid() | |
| { | |
| return !string.IsNullOrEmpty(AzureOpenAI_DeploymentName) && !string.IsNullOrEmpty(AzureOpenAI_ApiKey) && !string.IsNullOrEmpty(AzureOpenAI_Endpoint); | |
| } | |
| public bool isOpenAIConfigValid() | |
| { | |
| return !string.IsNullOrEmpty(OpenAI_ApiKey) && !string.IsNullOrEmpty(OpenAI_ModelId); | |
| } | |
| } | |
| } | |