mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Add csharp\sample\InferenceSample\Microsoft.ML.OnnxRuntime.InferenceSample.Maui so we have an equivalent setup for MAUI as for the other platforms. This provides a setup to do some basic local testing of using an InferenceSession in a MAUI app.
15 lines
747 B
XML
15 lines
747 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Microsoft.ML.OnnxRuntime.InferenceSample.Maui.MainPage">
|
|
|
|
<StackLayout>
|
|
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
|
|
<Label Text="Inference Sample" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
|
|
</Frame>
|
|
<Label Text="ONNX Runtime" FontSize="Title" Padding="30,10,30,10"/>
|
|
<Button x:Name="Start" Text="Run tests" Clicked="Start_Clicked" FontSize="Large" />
|
|
<Label x:Name="OutputLabel" Text="Output" FontSize="Small"/>
|
|
</StackLayout>
|
|
|
|
</ContentPage>
|