jbilcke-hf HF Staff commited on
Commit
4b590f9
·
1 Parent(s): dfbd87e

small prompt fix

Browse files
api_core.py CHANGED
@@ -315,10 +315,10 @@ class VideoGenerationAPI:
315
  prompt = f"""# Instruction
316
  Your response MUST be a YAML object containing a title and description, consistent with what we can find on a video sharing platform.
317
  Format your YAML response with only those fields: "title" (a short string) and "description" (string caption of the scene). Do not add any other field.
318
- In the description field, describe in a very synthetic way the visuals of the first shot (first scene), eg "<STYLE>, medium close-up shot, high angle view. In the foreground a <AGE>yo <GENDER> <CHARACTERS> <ACTIONS>. In the background <DESCRIBE THE LOCATION, BACKGROUND CHARACTERS OR OBJECTS ETC>. The scene is lit by <LIGHTING> <WEATHER>". This is just an example! you MUST replace the <TAGS>!!.
319
  Don't forget to replace <STYLE> etc, by the actual fields!!
320
  For the style, be creative, for instance you can use anything like a "documentary footage", "japanese animation", "movie scene", "tv series", "tv show", "security footage" etc.
321
- If the user ask for something specific eg an anime use "japanese animation, ", for a documentary about animals in nature use "documentary footage, " as a style etc.
322
  Keep it minimalist but still descriptive, don't use bullets points, use simple words, go to the essential to describe style (cinematic, documentary footage, 3D rendering..), camera modes and angles, characters, age, gender, action, location, lighting, country, costume, time, weather, textures, color palette.. etc). Write about 80 words, and use between 2 and 3 sentences.
323
  The most import part is to describe the actions and movements in the scene, so don't forget that!
324
  Don't describe sound, so ever say things like "atmospheric music playing in the background".
@@ -816,9 +816,9 @@ Your caption:"""
816
  elif orientation == 'LANDSCAPE' and height > width:
817
  # Swap height and width for landscape orientation
818
  height, width = width, height
819
- logger.info(f"generate_video() Orientation: {orientation}, swapped dimensions to width={width}, height={height}, steps={num_inference_steps}, fps={frame_rate} | role: {user_role}")
820
  else:
821
- logger.info(f"generate_video() Orientation: {orientation}, using original dimensions width={width}, height={height}, steps={num_inference_steps}, fps={frame_rate} | role: {user_role}")
822
  pass
823
 
824
  # Generate the video with standard settings
 
315
  prompt = f"""# Instruction
316
  Your response MUST be a YAML object containing a title and description, consistent with what we can find on a video sharing platform.
317
  Format your YAML response with only those fields: "title" (a short string) and "description" (string caption of the scene). Do not add any other field.
318
+ In the description field, describe in a very synthetic way the visuals of the first shot (first scene), eg "<STYLE>, medium close-up shot, high angle view. In the foreground a <OPTIONAL AGE> <OPTIONAL GENDER> <CHARACTERS> <ACTIONS>. In the background <DESCRIBE LOCATION, BACKGROUND CHARACTERS, OBJECTS ETC>. The scene is lit by <LIGHTING> <WEATHER>". This is just an example! you MUST replace the <TAGS>!!.
319
  Don't forget to replace <STYLE> etc, by the actual fields!!
320
  For the style, be creative, for instance you can use anything like a "documentary footage", "japanese animation", "movie scene", "tv series", "tv show", "security footage" etc.
321
+ If the user ask for something specific eg "movie screencap", "movie scene", "documentary footage" "animation" as a style etc.
322
  Keep it minimalist but still descriptive, don't use bullets points, use simple words, go to the essential to describe style (cinematic, documentary footage, 3D rendering..), camera modes and angles, characters, age, gender, action, location, lighting, country, costume, time, weather, textures, color palette.. etc). Write about 80 words, and use between 2 and 3 sentences.
323
  The most import part is to describe the actions and movements in the scene, so don't forget that!
324
  Don't describe sound, so ever say things like "atmospheric music playing in the background".
 
816
  elif orientation == 'LANDSCAPE' and height > width:
817
  # Swap height and width for landscape orientation
818
  height, width = width, height
819
+ # logger.info(f"generate_video() Orientation: {orientation}, swapped dimensions to width={width}, height={height}, steps={num_inference_steps}, fps={frame_rate} | role: {user_role}")
820
  else:
821
+ # logger.info(f"generate_video() Orientation: {orientation}, using original dimensions width={width}, height={height}, steps={num_inference_steps}, fps={frame_rate} | role: {user_role}")
822
  pass
823
 
824
  # Generate the video with standard settings
api_session.py CHANGED
@@ -206,7 +206,7 @@ class UserSession:
206
  query = data.get('query', '').strip()
207
  attempt_count = data.get('attemptCount', 0)
208
 
209
- logger.info(f"Processing search request for user {self.user_id}: query='{query}', attempt={attempt_count}")
210
 
211
  if not query:
212
  logger.warning(f"Empty query received in request from user {self.user_id}: {data}")
@@ -224,7 +224,7 @@ class UserSession:
224
  )
225
 
226
  if search_result:
227
- logger.info(f"Search successful for user {self.user_id}, query '{query}'")
228
  result = {
229
  'action': 'search',
230
  'requestId': request_id,
@@ -232,7 +232,7 @@ class UserSession:
232
  'result': search_result
233
  }
234
  else:
235
- logger.warning(f"No results found for user {self.user_id}, query '{query}'")
236
  result = {
237
  'action': 'search',
238
  'requestId': request_id,
@@ -240,7 +240,7 @@ class UserSession:
240
  'error': 'No results found'
241
  }
242
  except Exception as e:
243
- logger.error(f"Search error for user {self.user_id}, query '{query}' (attempt {attempt_count}): {str(e)}")
244
  result = {
245
  'action': 'search',
246
  'requestId': request_id,
 
206
  query = data.get('query', '').strip()
207
  attempt_count = data.get('attemptCount', 0)
208
 
209
+ # logger.info(f"Processing search request for user {self.user_id}, attempt={attempt_count}")
210
 
211
  if not query:
212
  logger.warning(f"Empty query received in request from user {self.user_id}: {data}")
 
224
  )
225
 
226
  if search_result:
227
+ # logger.info(f"Search successful for user {self.user_id}, query '{query}'")
228
  result = {
229
  'action': 'search',
230
  'requestId': request_id,
 
232
  'result': search_result
233
  }
234
  else:
235
+ # logger.warning(f"No results found for user {self.user_id}, query '{query}'")
236
  result = {
237
  'action': 'search',
238
  'requestId': request_id,
 
240
  'error': 'No results found'
241
  }
242
  except Exception as e:
243
+ logger.error(f"Search error for user {self.user_id}, (attempt {attempt_count}): {str(e)}")
244
  result = {
245
  'action': 'search',
246
  'requestId': request_id,
build/web/flutter_bootstrap.js CHANGED
@@ -39,6 +39,6 @@ _flutter.buildConfig = {"engineRevision":"382be0028d370607f76215a9be322e5514b263
39
 
40
  _flutter.loader.load({
41
  serviceWorkerSettings: {
42
- serviceWorkerVersion: "3488368116"
43
  }
44
  });
 
39
 
40
  _flutter.loader.load({
41
  serviceWorkerSettings: {
42
+ serviceWorkerVersion: "3100260862"
43
  }
44
  });
build/web/flutter_service_worker.js CHANGED
@@ -3,7 +3,7 @@ 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": "a222b82a6833ecba06ce04e347f57600",
7
  "version.json": "b5eaae4fc120710a3c35125322173615",
8
  "index.html": "2677c99782b3eb75aae7c757748ccacb",
9
  "/": "2677c99782b3eb75aae7c757748ccacb",
 
3
  const TEMP = 'flutter-temp-cache';
4
  const CACHE_NAME = 'flutter-app-cache';
5
 
6
+ const RESOURCES = {"flutter_bootstrap.js": "aa0de14d9015e57eee1c8b8d203d37cc",
7
  "version.json": "b5eaae4fc120710a3c35125322173615",
8
  "index.html": "2677c99782b3eb75aae7c757748ccacb",
9
  "/": "2677c99782b3eb75aae7c757748ccacb",
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=1746960753" 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=1747072784" async></script>
160
 
161
  <!-- Add cache busting script -->
162
  <script>