jfforero commited on
Commit
aa829b9
·
verified ·
1 Parent(s): ef95675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -172,13 +172,13 @@ def get_image_prompt(sentiment, transcribed_text, chunk_idx, total_chunks):
172
  base_prompt = f"Chunk {chunk_idx+1}/{total_chunks}: "
173
 
174
  if sentiment == "positive":
175
- return f"Generate a non-figurative equirectangular 360 abstract texture of:{transcribed_text}. Use low histogram frequency in bright bins, dominant color in high RGB range, and high brightness and color variance. Apply high-frequency texture with strong filter energy, pronounced gradient magnitude, and strong local contrast. Use high spatial complexity, increased horizontal and vertical symmetry, high edge density, bright gray levels, and high contrast. Emphasize rich visual structure, color variation, and texture intensity across spatial composition."
176
 
177
  elif sentiment == "negative":
178
- return f"Generate a non-figurative equirectangular 360 abstract texture of:{transcribed_text}. Use high histogram frequency in dark bins, dominant color in low RGB range, and low brightness and color variance. Apply low-frequency texture with low filter energy, weak gradient magnitude, and low local contrast. Use low spatial complexity, reduced horizontal and vertical symmetry, low edge density, dark gray levels, and moderate contrast. Emphasize coarse structure and limited variation in color, texture, and spatial distribution."
179
 
180
  else: # neutral
181
- return f"Generate a non-figurative abstract equirectangular 360 abstract texture of:{transcribed_text}. Use a balanced histogram frequency across bins, dominant color in a mid RGB range, and moderate brightness and color variance. Apply medium-frequency texture with moderate filter energy, standard gradient magnitude, and average local contrast. Use medium spatial complexity, balanced horizontal and vertical symmetry, medium edge density, mid-range gray levels, and standard contrast. Emphasize naturalistic structure and typical variation in color, texture, and spatial distribution."
182
 
183
  # Function to get music prompt based on emotion
184
  def get_music_prompt(emotion, transcribed_text, chunk_idx, total_chunks):
@@ -911,13 +911,17 @@ with gr.Blocks(title="Entornos Virtuales Afectivos - Procesamiento por Segmentos
911
  gr.Markdown("# Bello")
912
  gr.Markdown(
913
  """
914
- ***Bello*** explora las sutilezas afectivas de la voz humana.
 
 
 
915
  Usando técnicas multimodales de reconocimiento de emociones en el habla, el proyecto analiza parámetros acústicos, prosódicos
916
- y semánticos del lenguaje hablado para generar entornos virtuales inmersivos en 360°.
917
 
918
  ### Cómo interactuar
919
 
920
- 1. Graba tu voz diciendo lo que quieras—un poema, una canción, una historia, o cualquier frase que se te ocurra.
 
921
  2. Establece la duración de cada segmento para dividir tu grabación en trozos.
922
  3. Marca la casilla si quieres generar audio para cada segmento.
923
  4. Genera tu Entorno Virtual Afectivo y espera los resultados.
 
172
  base_prompt = f"Chunk {chunk_idx+1}/{total_chunks}: "
173
 
174
  if sentiment == "positive":
175
+ return f"Generate a non-figurative equirectangular 360 abstract sketch drawing of:{transcribed_text}. Use low histogram frequency in bright bins, dominant color in high RGB range, and high brightness and color variance. Apply high-frequency texture with strong filter energy, pronounced gradient magnitude, and strong local contrast. Use high spatial complexity, increased horizontal and vertical symmetry, high edge density, bright gray levels, and high contrast. Emphasize rich visual structure, color variation, and texture intensity across spatial composition."
176
 
177
  elif sentiment == "negative":
178
+ return f"Generate a non-figurative equirectangular 360 abstract sketch drawing of:{transcribed_text}. Use high histogram frequency in dark bins, dominant color in low RGB range, and low brightness and color variance. Apply low-frequency texture with low filter energy, weak gradient magnitude, and low local contrast. Use low spatial complexity, reduced horizontal and vertical symmetry, low edge density, dark gray levels, and moderate contrast. Emphasize coarse structure and limited variation in color, texture, and spatial distribution."
179
 
180
  else: # neutral
181
+ return f"Generate a non-figurative abstract equirectangular 360 abstract sketch drawing of:{transcribed_text}. Use a balanced histogram frequency across bins, dominant color in a mid RGB range, and moderate brightness and color variance. Apply medium-frequency texture with moderate filter energy, standard gradient magnitude, and average local contrast. Use medium spatial complexity, balanced horizontal and vertical symmetry, medium edge density, mid-range gray levels, and standard contrast. Emphasize naturalistic structure and typical variation in color, texture, and spatial distribution."
182
 
183
  # Function to get music prompt based on emotion
184
  def get_music_prompt(emotion, transcribed_text, chunk_idx, total_chunks):
 
911
  gr.Markdown("# Bello")
912
  gr.Markdown(
913
  """
914
+ ***Bello*** explora las sutilezas afectivas de la voz humana a través de la figura del **Teniente Bello**,
915
+ el piloto chileno que desapareció misteriosamente en 1914 durante un vuelo de entrenamiento sobre la costa del Pacífico.
916
+
917
+ Este espacio invita a reflexionar, desde la emoción y la voz, sobre la pérdida, la memoria y la búsqueda.
918
  Usando técnicas multimodales de reconocimiento de emociones en el habla, el proyecto analiza parámetros acústicos, prosódicos
919
+ y semánticos del lenguaje hablado para generar entornos virtuales inmersivos en 360°, donde la voz reconstituye el eco de lo ausente.
920
 
921
  ### Cómo interactuar
922
 
923
+ 1. Graba tu voz diciendo algo en alusión al Teniente Bello una frase, un poema, una especulación, una despedida,
924
+ o lo que su historia te inspire.
925
  2. Establece la duración de cada segmento para dividir tu grabación en trozos.
926
  3. Marca la casilla si quieres generar audio para cada segmento.
927
  4. Genera tu Entorno Virtual Afectivo y espera los resultados.