Small fixes
This commit is contained in:
parent
220857c5d7
commit
1d2f1d1c82
@ -1 +0,0 @@
|
||||
|
@ -180,8 +180,6 @@ class GeminiCubit extends Cubit<GeminiState> {
|
||||
final quizQuestions = await loadQuizQuestions(lessonId);
|
||||
final String lessonScript =
|
||||
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 =
|
||||
"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";
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
const bool isDebug = false;
|
||||
const bool isSimulatedEEG = true;
|
@ -21,7 +21,7 @@ class EegService {
|
||||
|
||||
EegService() : state = EegState(mindWandering: 0.1, focus: 0.9) {
|
||||
// Start the timer when the cubit is created
|
||||
if (false) {
|
||||
if (!isSimulatedEEG) {
|
||||
startPolling();
|
||||
}
|
||||
}
|
||||
@ -48,7 +48,7 @@ class EegService {
|
||||
}
|
||||
|
||||
Future<List<double>> fetchEegData() async {
|
||||
if (true) {
|
||||
if (isSimulatedEEG) {
|
||||
return [0.9, 0.1]; // Placeholder ret
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,7 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'MindEasy',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
primarySwatch: Colors.teal,
|
||||
|
Loading…
Reference in New Issue
Block a user