jbilcke-hf HF Staff commited on
Commit
5707a78
·
1 Parent(s): b652d46

updated wording, disabled simulation engine

Browse files
build/web/flutter_bootstrap.js CHANGED
@@ -38,6 +38,6 @@ _flutter.buildConfig = {"engineRevision":"1c9c20e7c3dd48c66f400a24d48ea806b4ab31
38
 
39
  _flutter.loader.load({
40
  serviceWorkerSettings: {
41
- serviceWorkerVersion: "2739260384"
42
  }
43
  });
 
38
 
39
  _flutter.loader.load({
40
  serviceWorkerSettings: {
41
+ serviceWorkerVersion: "401217633"
42
  }
43
  });
build/web/flutter_service_worker.js CHANGED
@@ -3,12 +3,12 @@ const MANIFEST = 'flutter-app-manifest';
3
  const TEMP = 'flutter-temp-cache';
4
  const CACHE_NAME = 'flutter-app-cache';
5
 
6
- const RESOURCES = {"flutter_bootstrap.js": "9b7a4a65d904e18b088b806df19f480c",
7
  "version.json": "68350cac7987de2728345c72918dd067",
8
  "tikslop.png": "570e1db759046e2d224fef729983634e",
9
  "index.html": "3a7029b3672560e7938aab6fa4d30a46",
10
  "/": "3a7029b3672560e7938aab6fa4d30a46",
11
- "main.dart.js": "b586f88a7fb24fe005b0482de36b3822",
12
  "tikslop.svg": "26140ba0d153b213b122bc6ebcc17f6c",
13
  "flutter.js": "888483df48293866f9f41d3d9274a779",
14
  "favicon.png": "c8a183c516004e648a7bac7497c89b97",
 
3
  const TEMP = 'flutter-temp-cache';
4
  const CACHE_NAME = 'flutter-app-cache';
5
 
6
+ const RESOURCES = {"flutter_bootstrap.js": "4704f10d11e3b5570203ced46f420e01",
7
  "version.json": "68350cac7987de2728345c72918dd067",
8
  "tikslop.png": "570e1db759046e2d224fef729983634e",
9
  "index.html": "3a7029b3672560e7938aab6fa4d30a46",
10
  "/": "3a7029b3672560e7938aab6fa4d30a46",
11
+ "main.dart.js": "3e9b078cf004be6fc60825295d810cf0",
12
  "tikslop.svg": "26140ba0d153b213b122bc6ebcc17f6c",
13
  "flutter.js": "888483df48293866f9f41d3d9274a779",
14
  "favicon.png": "c8a183c516004e648a7bac7497c89b97",
build/web/index.html CHANGED
@@ -156,7 +156,7 @@
156
  </script>
157
 
158
  <!-- Add version parameter for cache busting -->
159
- <script src="flutter_bootstrap.js?v=1753360434" async></script>
160
 
161
  <!-- Add cache busting script -->
162
  <script>
 
156
  </script>
157
 
158
  <!-- Add version parameter for cache busting -->
159
+ <script src="flutter_bootstrap.js?v=1753366329" async></script>
160
 
161
  <!-- Add cache busting script -->
162
  <script>
build/web/main.dart.js CHANGED
The diff for this file is too large to render. See raw diff
 
lib/screens/settings_screen.dart CHANGED
@@ -188,14 +188,32 @@ class _SettingsScreenState extends State<SettingsScreen> {
188
  crossAxisAlignment: CrossAxisAlignment.start,
189
  children: [
190
  const Text(
191
- 'LLM (used for search and story generation)',
192
  style: TextStyle(
193
  color: TikSlopColors.onBackground,
194
  fontSize: 20,
195
  fontWeight: FontWeight.bold,
196
  ),
197
  ),
198
- const SizedBox(height: 16),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  TextField(
200
  controller: _hfApiKeyController,
201
  decoration: const InputDecoration(
@@ -591,14 +609,32 @@ class _SettingsScreenState extends State<SettingsScreen> {
591
  crossAxisAlignment: CrossAxisAlignment.start,
592
  children: [
593
  const Text(
594
- 'Infinite video generator',
595
  style: TextStyle(
596
  color: TikSlopColors.onBackground,
597
  fontSize: 20,
598
  fontWeight: FontWeight.bold,
599
  ),
600
  ),
601
- const SizedBox(height: 16),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
602
  TextField(
603
  controller: _promptController,
604
  decoration: const InputDecoration(
@@ -626,7 +662,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
626
  const SizedBox(height: 16),
627
  DropdownButtonFormField<String>(
628
  decoration: const InputDecoration(
629
- labelText: 'Video Generation Model (cannot be changed yet)',
630
  ),
631
  initialValue: 'ltx-video-2b-0.9.8',
632
  onChanged: null, // Disabled
@@ -677,6 +713,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
677
  _settingsService.setShowSceneDebugInfo(value);
678
  },
679
  ),
 
 
680
  SwitchListTile(
681
  title: const Text('Enable world simulator engine'),
682
  subtitle: const Text('Allow video descriptions to evolve over time using a LLM (this consumes tokens, your Hugging Face account will be billed)'),
@@ -688,6 +726,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
688
  _settingsService.setEnableSimulation(value);
689
  },
690
  ),
 
691
  const SizedBox(height: 16),
692
  // Clear device connections button
693
  ListTile(
 
188
  crossAxisAlignment: CrossAxisAlignment.start,
189
  children: [
190
  const Text(
191
+ 'Story Engine',
192
  style: TextStyle(
193
  color: TikSlopColors.onBackground,
194
  fontSize: 20,
195
  fontWeight: FontWeight.bold,
196
  ),
197
  ),
198
+ const SizedBox(height: 6),
199
+ const Text(
200
+ '#tikslop uses a language model (LLM) to generate search results and video descriptions.',
201
+ style: TextStyle(
202
+ color: TikSlopColors.onSurfaceVariant,
203
+ fontSize: 12,
204
+ fontWeight: FontWeight.normal,
205
+ ),
206
+ ),
207
+ const SizedBox(height: 2),
208
+ const Text(
209
+ 'A basic LLM is available by default for free, but it has limited capacity. Switch to another LLM for best performance.',
210
+ style: TextStyle(
211
+ color: TikSlopColors.onSurfaceVariant,
212
+ fontSize: 12,
213
+ fontWeight: FontWeight.normal,
214
+ ),
215
+ ),
216
+ const SizedBox(height: 10),
217
  TextField(
218
  controller: _hfApiKeyController,
219
  decoration: const InputDecoration(
 
609
  crossAxisAlignment: CrossAxisAlignment.start,
610
  children: [
611
  const Text(
612
+ 'Rendering Engine',
613
  style: TextStyle(
614
  color: TikSlopColors.onBackground,
615
  fontSize: 20,
616
  fontWeight: FontWeight.bold,
617
  ),
618
  ),
619
+ const SizedBox(height: 6),
620
+ const Text(
621
+ 'Note: while #tikslop uses GPUs courtesy of Hugging Face, is not an official project but simply a demo made by @jbilcke-hf and should be considered like beta software.',
622
+ style: TextStyle(
623
+ color: TikSlopColors.onSurfaceVariant,
624
+ fontSize: 12,
625
+ fontWeight: FontWeight.normal,
626
+ ),
627
+ ),
628
+ const SizedBox(height: 2),
629
+ const Text(
630
+ 'Because of this free hosting (and the experimental nature of the app), the stream might get slowed down or interrupted at anytime in case of traffic surge or unplanned maintenance.',
631
+ style: TextStyle(
632
+ color: TikSlopColors.onSurfaceVariant,
633
+ fontSize: 12,
634
+ fontWeight: FontWeight.normal,
635
+ ),
636
+ ),
637
+ const SizedBox(height: 10),
638
  TextField(
639
  controller: _promptController,
640
  decoration: const InputDecoration(
 
662
  const SizedBox(height: 16),
663
  DropdownButtonFormField<String>(
664
  decoration: const InputDecoration(
665
+ labelText: 'Real-time Video Model (free and built-in, cannot be changed yet)',
666
  ),
667
  initialValue: 'ltx-video-2b-0.9.8',
668
  onChanged: null, // Disabled
 
713
  _settingsService.setShowSceneDebugInfo(value);
714
  },
715
  ),
716
+ /*
717
+ let's disable this for now, I still need to work on this
718
  SwitchListTile(
719
  title: const Text('Enable world simulator engine'),
720
  subtitle: const Text('Allow video descriptions to evolve over time using a LLM (this consumes tokens, your Hugging Face account will be billed)'),
 
726
  _settingsService.setEnableSimulation(value);
727
  },
728
  ),
729
+ */
730
  const SizedBox(height: 16),
731
  // Clear device connections button
732
  ListTile(
lib/screens/video_screen.dart CHANGED
@@ -31,6 +31,7 @@ class VideoScreen extends StatefulWidget {
31
  class _VideoScreenState extends State<VideoScreen> {
32
  Future<String>? _captionFuture;
33
  final _websocketService = WebSocketApiService();
 
34
  bool _isConnected = false;
35
  late VideoResult _videoData;
36
  final _searchController = TextEditingController();
@@ -436,7 +437,7 @@ class _VideoScreenState extends State<VideoScreen> {
436
  Expanded(
437
  child: _buildMainContent(),
438
  ),
439
- if (Configuration.instance.showChatInVideoView) ...[
440
  const SizedBox(width: 16),
441
  Padding(
442
  padding: const EdgeInsets.only(left: 0, top: 16, right: 16, bottom: 4),
@@ -450,7 +451,7 @@ class _VideoScreenState extends State<VideoScreen> {
450
  Expanded(
451
  child: _buildMainContent(),
452
  ),
453
- if (Configuration.instance.showChatInVideoView) ...[
454
  const SizedBox(height: 16),
455
  Expanded(
456
  child: Padding(
 
31
  class _VideoScreenState extends State<VideoScreen> {
32
  Future<String>? _captionFuture;
33
  final _websocketService = WebSocketApiService();
34
+ final _settingsService = SettingsService();
35
  bool _isConnected = false;
36
  late VideoResult _videoData;
37
  final _searchController = TextEditingController();
 
437
  Expanded(
438
  child: _buildMainContent(),
439
  ),
440
+ if (Configuration.instance.showChatInVideoView && _settingsService.enableSimulation) ...[
441
  const SizedBox(width: 16),
442
  Padding(
443
  padding: const EdgeInsets.only(left: 0, top: 16, right: 16, bottom: 4),
 
451
  Expanded(
452
  child: _buildMainContent(),
453
  ),
454
+ if (Configuration.instance.showChatInVideoView && _settingsService.enableSimulation) ...[
455
  const SizedBox(height: 16),
456
  Expanded(
457
  child: Padding(