Skip to content

Commit

Permalink
mock be
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmj committed Oct 29, 2023
1 parent 66d4c84 commit f189340
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion src/services/WrapperService.ts
Expand Up @@ -15,7 +15,50 @@ export type QuestionDto = {
OpenAPI.BASE = 'http://localhost:8080';

export const createQuestion = (pdf: File | null, userQuery: UserQuery): Observable<QuestionDto[]> => {

const mock: BehaviorSubject<QuestionDto[]> = new BehaviorSubject<
QuestionDto[]
>([
{
question: 'What are some potential applications of NanoScribe?',
options: [
'A) Creating customized medical devices',
'B) Designing new materials with unprecedented properties',
'C) Revolutionizing production processes',
'D) All of the above',
],
correct_answer_id: 3,
explanation:
'NanoScribe has limitless applications in medicine, materials science, and manufacturing, making option D the correct answer.',
topic: 'Applications of NanoScribe',
},
{
question: 'How does NanoScribe work?',
options: [
'A) By manipulating individual atoms and molecules',
'B) By using miniature 3D printers',
'C) By arranging atoms and molecules with incredible precision',
'D) All of the above',
],
correct_answer_id: 3,
explanation:
'NanoScribe works by manipulating individual atoms and molecules using miniature 3D printers to arrange them with incredible precision, making option D the correct answer.',
topic: 'How NanoScribe works',
},
{
question: 'What is the potential impact of NanoScribe?',
options: [
'A) Transforming various industries',
'B) Sparking new innovations',
'C) Creating devices and structures that were previously deemed impossible',
'D) All of the above',
],
correct_answer_id: 3,
explanation:
'NanoScribe has the potential to transform various industries, spark new innovations, and create devices and structures that were previously deemed impossible, making option D the correct answer.',
topic: 'Potential impact of NanoScribe',
},
]);
return mock.asObservable();
if (pdf) {
return from(createQuestionsWithPdfCreateQuestionsWithPdfPost(userQuery.profile, userQuery.intent, {pdf_file: pdf as Blob})).pipe(
map((questionsList) => questionsList.data.map(questionMapper)),
Expand Down

0 comments on commit f189340

Please sign in to comment.