jfforero commited on
Commit
aea1f7b
·
verified ·
1 Parent(s): ef88728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 black and white 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 black and white 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 black and white 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):
@@ -914,13 +914,13 @@ with gr.Blocks(title="Entornos Virtuales Afectivos - Procesamiento por Segmentos
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 habitar lo desconocido, desde la emoción y la palabra, en una búsqueda de memorias olvidadas.
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°.
920
 
921
  ### Cómo interactuar
922
 
923
- 1. Graba tu voz (o sube un archivo de audio) diciendo algo en alusión al Teniente Bello — una frase, un poema, una especulación, una despedida o simlemente invoca su nombre.
924
  2. Establece la duración de cada segmento para dividir tu grabación en trozos.
925
  3. Marca la casilla si quieres generar audio para cada segmento.
926
  4. Genera tu Entorno Virtual Afectivo **EVA** y espera los resultados.
 
172
  base_prompt = f"Chunk {chunk_idx+1}/{total_chunks}: "
173
 
174
  if sentiment == "positive":
175
+ return f"Generate a black and white non-figurative equirectangular 360 abstract sketch drawing of:{transcribed_text}. Add light glow colors over the b/w sketch with 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 black and white non-figurative equirectangular 360 abstract sketch drawing of:{transcribed_text}. Add light glow colors over the b/w sketch with 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 black and white non-figurative abstract equirectangular 360 abstract sketch drawing of:{transcribed_text}. Add light glow colors over the b/w sketch with 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):
 
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 habitar lo desconocido, desde la emoción y la palabra.
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°.
920
 
921
  ### Cómo interactuar
922
 
923
+ 1. Graba tu voz (o sube un audio) imaginando qué pudo haberle sucedido al Teniente Alejandro Bello.
924
  2. Establece la duración de cada segmento para dividir tu grabación en trozos.
925
  3. Marca la casilla si quieres generar audio para cada segmento.
926
  4. Genera tu Entorno Virtual Afectivo **EVA** y espera los resultados.