From e95f134123b7bd39c62be70fc6a57f41d889cf19 Mon Sep 17 00:00:00 2001 From: Mateusz Halada Date: Sat, 28 Oct 2023 21:48:45 +0200 Subject: [PATCH] update llama service --- frontend/src/app/app.component.html | 212 +++++++++--------- frontend/src/app/app.component.scss | 5 + .../src/app/service/llama/llama.service.ts | 4 +- 3 files changed, 114 insertions(+), 107 deletions(-) diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 98cd7fd..18bd78b 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -1,121 +1,123 @@ -

+

{{ title }}

- -
-
-
-
- - Question - - - -
+
+
+
+
+
+ + Question + + + +
+
-
- - -
-
-
- - - - - - - - - + +
+
+
+
Short description - {{ element.description | shorten: visibleCharacters }} - Type{{ element.type }}
+ + + + - - - - + + + - - + + + + + + + + + - - - - - + + + + - - -
Short description + {{ element.description | shorten: visibleCharacters }} + Language {{ element.language}}Type{{ element.type }} - {{ emojiHashMap.get(element.language)}}Language{{ element.language }} + {{ emojiHashMap.get(element.language) }} + Link - - - - Link + + + +
-
-
- -
-
-

Are you satisfied with the results?

-
-
- -
-
- + + +
-
- - -
-
-

What went wrong?

-
-
- + +
+
+

Are you satisfied with the results?

+
+
+ +
+
+ +
-
- + + + +
+
+

What went wrong?

+
+
+ +
+
+ +
-
-
-
- + +
+
+ diff --git a/frontend/src/app/app.component.scss b/frontend/src/app/app.component.scss index f3fc311..6c1c3d0 100644 --- a/frontend/src/app/app.component.scss +++ b/frontend/src/app/app.component.scss @@ -16,3 +16,8 @@ table { padding-bottom: 15px; } } + +main { + height: 100%; + background: rgba(129,199,132,1) 50%; + } diff --git a/frontend/src/app/service/llama/llama.service.ts b/frontend/src/app/service/llama/llama.service.ts index f5e5da2..f98abe0 100644 --- a/frontend/src/app/service/llama/llama.service.ts +++ b/frontend/src/app/service/llama/llama.service.ts @@ -21,7 +21,7 @@ export class LlamaService { this.lastQuestionAsked.next(question); }) ); - //this.httpClient.post('/askQuestion', { question, userId }); + //this.httpClient.post('', { question, userId }); } sendFeedback(feedback: string, userId: string): Observable { @@ -33,6 +33,6 @@ export class LlamaService { results: this.lastResults.getValue() }); return of(true); - // this.httpClient.post('/sendFeedback', { feedback, userId, previousQuestion, previousResults }); + // this.httpClient.post('', { feedback, userId, previousQuestion, previousResults }); } }