Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GuillaumeDaviid/ec328c9419206a6450239e7e40d50b1e to your computer and use it in GitHub Desktop.
Save GuillaumeDaviid/ec328c9419206a6450239e7e40d50b1e to your computer and use it in GitHub Desktop.
Angular IA composant HTML
<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