Created
October 13, 2023 09:27
-
-
Save GuillaumeDaviid/ec328c9419206a6450239e7e40d50b1e to your computer and use it in GitHub Desktop.
Angular IA composant HTML
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
<div> | |
<h1 class="title">Chat Bot with GPT</h1> | |
<div class="chat_bot" id="chat_bot"> | |
<div class="chat_bot_content-msg" id="chat_bot_content-msg"> | |
<h2 class="chat_bot-msg">Bot :</h2> | |
<p class="chat_bot-msg" *ngIf="botResponse">{{botResponse}}</p> | |
<p class="chat_bot-msg" *ngIf="!botResponse">Bonjour, Je suis un bot codé en Angular et utilisant GPT3 d'Open AI</p> | |
</div> | |
</div> | |
<form class="form"> | |
<input class="msg" id="msg" name="msg" placeholder="Message" [(ngModel)]="newMsg"> | |
<button class="btn" (click)="handleClick()">Envoyer</button> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment