Skip to content

Commit 691813c

Browse files
author
Luz
committed
Update the csproj file, add nuget metadata
1 parent e6360a1 commit 691813c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/DotnetBadWordDetector/DotnetBadWordDetector.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<PackageId>AppLogger</PackageId>
5-
<Version>1.0.0</Version>
4+
<PackageId>DotnetBadWordDetector</PackageId>
5+
<Version>1.0.1</Version>
66
<Authors>Felipe Luz</Authors>
7+
<PackageDescription>Dotnet Bad Word Detector</PackageDescription>
8+
<RepositoryUrl>https://github.com/FelipeLuz/dotnet-bad-word-detector</RepositoryUrl>
79
<TargetFramework>netcoreapp3.1</TargetFramework>
810
<LangVersion>10.0</LangVersion>
911
<AssemblyName>DotnetBadWordDetector</AssemblyName>

src/DotnetBadWordDetector/ProfanityDetector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private void LoadTrainedModel()
2222
_predictionEngine = mlContext.Model.CreatePredictionEngine<BadWord, BadWordPrediction>(trainedModel);
2323
}
2424

25-
private Stream? GetModelStream()
25+
private Stream GetModelStream()
2626
{
2727
var assembly = typeof(DotnetBadWordDetector.ProfanityDetector).Assembly;
2828
return assembly.GetManifestResourceStream(MODELPATH);

0 commit comments

Comments
 (0)