Search results for query: *

  • Users: SaeedP
  • Content: Threads
  • Order by date
  1. SaeedP

    Why do I get this Chrome console error

    I keep encountering the below Chrome console error while it sounds like my code is correct. @page "/" @using System.Net.Http.Json @using System.Text.Json @using System.Diagnostics @inject HttpClient Http <form> <h1>AI Image Generator</h1> <div class="form-group">...
  2. SaeedP

    Strange issue on label id

    Hi, I keep encountering errors in my label and input tags despite having made several changes. When I check the code in both Visual Studio and AI, I can't seem to find any errors. However, when I run the code, the browser shows issues. What could be causing this problem? <form> <h1>AI...
  3. SaeedP

    Exception issue

    Hi, I'm encountering this exception while running my code. Can someone help me understand what it means and what could be causing it?
  4. SaeedP

    issue with the input tag

    Hello, I need to import an image in my Blazor web assembly app. I have tested and read a lot of content from the web and AI. But I don't know why none of my input tags are working! <InputFile @OnChange="HandleFileUpload" /> <input type="file" @onchange="HandleFileUpload" /> <input type="file"...
  5. SaeedP

    ML.net builder tutorial question

    Hello, I'm trying this tutorial: What is Model Builder and how does it work? - ML.NET but on this page: ML.NET Tutorial | Get started in 10 minutes | .NET When I press the brows button, nothing happens! Can you guide me? thanks,
  6. SaeedP

    problem with Microsoft ML

    Hello, This class is a logo builder project app. I have installed Microsoft ml but I still see a red line under Predict. I've tried many AI modes but still couldn't find what package should I install: using Microsoft.ML; namespace BlazorWasm_ML.net_Monica_Claude.Services { public class...
  7. SaeedP

    Problem with AI logo builder program

    Hello, In these lines of code, I have tried to create a logo builder program using DeepAI API. It seems that the program works, but the received image is not clear. @page "/LogoBuilder" @layout EmptyLayout @inherits LayoutComponentBase <div> <h3>LogoBuilder</h3> <SaeedMenu />...
  8. SaeedP

    What is the process of adding an API to the most recent release of Blazor server?

    Hello, What is the process for creating an instance of a class within a Blazor component and utilizing its methods? By "latest version," I am referring to the most recent release. thanks, Saeed
  9. SaeedP

    What is the process for creating an instance of a class within a Blazor component and utilizing its methods?

    Hello, My question is regarding Blazor service: In my app, I have a component: Logo-builder. razor @page "/logo-builder" @using BlazorApp_AI_1.Data @inject LogoBuiderService logoBuilderService <h1>Logo Builder</h1> <label for="text-input">Text:</label> <input type="text" id="text-input"...
  10. SaeedP

    Need help to understanding the code

    Hi, This is part of a tutorial for OpenAI development: https://www.c-sharpcorner.com/article/building-ai-chatbot-app-with-chatgpt-api-and-blazor-a-step-by-step-guide/ Can you please help me to understand this part of the code: Content = new StringContent("{\"model\": \"text-davinci-001\"...
  11. SaeedP

    What is the meaning of this part of code

    Hello, Can you please tell me what is the meaning of this code: return responseString!.choices[0].text; regards, Saeed
  12. SaeedP

    Resolved Problem with adding favicon to blazor server

    Hello, I want to insert a link for the site favicon in the layout. C HTML, my link is: <link rel="icon" type="image/x-icon" href="wwwroot/favicon.ico"> but I get this error: But as you can see my favicon is in the wwwroot folder: Do you think what is wrong? regards, Saeed
  13. SaeedP

    Why I can't see my menu in Blazor?

    Hello, Why I can't see my menu in Blazor? Here is my code: mainLayot: @inherits LayoutComponentBase <PageTitle>BlazorApp1</PageTitle> <div class="page"> <div class="sidebar"> <saeedMenu /> @*<NavMenu/>*@ </div> <main> @*<div class="top-row px-4">...
  14. SaeedP

    Resolved code section in blazor

    Hello, Can the code that is written in Blazor in the code section be written in the controller? Are the codes exactly the same? thanks,
  15. SaeedP

    Animation on scroll in Blazor

    Hello, Is the possible to do "Animation on scroll" in Blazor? It seems there is no component to achieve this. I mean something like this site: https://michalsnik.github.io/aos/ Regards, Saeed
  16. SaeedP

    an issue with visual studio 2022

    Hello, Can you please help me with this post: https://developercommunity.visualstudio.com/t/Instaling-error-at-the-end-of-process/1610757?entry=myfeedback&space=8 regards,
  17. SaeedP

    Why I see red line under this statement

    Hello, When I want to use these lines I encounter a red line under seek and copy to. And Warns me up "Are you missing a directive"? var state = _instaApi.GetStateDataAsString(); using (var fileStream = File.Create(stateFile)) {...
  18. SaeedP

    Need help on loading data

    Hi, I'm doing a web app in blazor for Instagram. I use instaApiSharp: Should I use load state from stream or loading state from String?? When I use " loadStateFromStream" , When I run nothing happens and just I see: this message: Message: Loading state from file and there is no exception. if...
  19. SaeedP

    How save an image on the server after changing it on the view layer?

    Hello Consider I upload an image to the server, then I changed some elements of the image with an image editor on the view layer (assume the view layer uses an image editor) then how can I save it as a new image on the server? (I mean how should be the back end code). regards, Saeed
  20. SaeedP

    Resolved why do we return a value for uploading an image in this controller?

    Hello, This is the part of a controller which uploads files in ASP.net Core. My question is why do we return a value for this case? Image file = await _context.Images.FirstOrDefaultAsync(f => f.FileName == imageData.File.FileName); if (file == null) {...
Back
Top Bottom