Small fixes

This commit is contained in:
Dawid Pietrykowski 2024-08-10 15:17:59 +02:00
parent 220857c5d7
commit 1d2f1d1c82
5 changed files with 4 additions and 5 deletions

View File

@ -1 +0,0 @@

View File

@ -180,8 +180,6 @@ class GeminiCubit extends Cubit<GeminiState> {
final quizQuestions = await loadQuizQuestions(lessonId); final quizQuestions = await loadQuizQuestions(lessonId);
final String lessonScript = final String lessonScript =
await rootBundle.loadString('assets/lessons/$lessonId.md'); await rootBundle.loadString('assets/lessons/$lessonId.md');
// final String prompt =
// "Jesteś nauczycielem/chatbotem prowadzącym zajęcia z jednym uczniem. Uczeń ma możliwość zadawania pytań w trakcie, natomiast jesteś odpowiedzialny za prowadzenie lekcji i przedstawienie tematu. Zacznij prowadzić lekcje dla jednego ucznia na podstawie poniszego skryptu:\n$rjp";
final String prompt = final String prompt =
"You are a lecturer teaching a class with one student. The student has the ability to ask questions during the lesson, while you are responsible for lecturing and presenting the topic. Start conducting the lecture for one student based on the script below:\n$lessonScript"; "You are a lecturer teaching a class with one student. The student has the ability to ask questions during the lesson, while you are responsible for lecturing and presenting the topic. Start conducting the lecture for one student based on the script below:\n$lessonScript";

View File

@ -1 +1,2 @@
const bool isDebug = false; const bool isDebug = false;
const bool isSimulatedEEG = true;

View File

@ -21,7 +21,7 @@ class EegService {
EegService() : state = EegState(mindWandering: 0.1, focus: 0.9) { EegService() : state = EegState(mindWandering: 0.1, focus: 0.9) {
// Start the timer when the cubit is created // Start the timer when the cubit is created
if (false) { if (!isSimulatedEEG) {
startPolling(); startPolling();
} }
} }
@ -48,7 +48,7 @@ class EegService {
} }
Future<List<double>> fetchEegData() async { Future<List<double>> fetchEegData() async {
if (true) { if (isSimulatedEEG) {
return [0.9, 0.1]; // Placeholder ret return [0.9, 0.1]; // Placeholder ret
} }

View File

@ -16,6 +16,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
title: 'MindEasy', title: 'MindEasy',
debugShowCheckedModeBanner: false,
theme: ThemeData( theme: ThemeData(
brightness: Brightness.dark, brightness: Brightness.dark,
primarySwatch: Colors.teal, primarySwatch: Colors.teal,