Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def generate_image(api_key, text):
|
|
| 81 |
def get_predictions(audio_input):
|
| 82 |
emotion_prediction = predict_emotion_from_audio(audio_input)
|
| 83 |
transcribed_text = transcribe(audio_input)
|
| 84 |
-
texto_imagen = "Generate a texture image' representing the concept of: [ " + emotion_prediction + "]. Illustrate this idea using a " + emotion_prediction + " graphic style."
|
| 85 |
image = generate_image(api_key, texto_imagen)
|
| 86 |
return emotion_prediction, transcribed_text, image
|
| 87 |
|
|
|
|
| 81 |
def get_predictions(audio_input):
|
| 82 |
emotion_prediction = predict_emotion_from_audio(audio_input)
|
| 83 |
transcribed_text = transcribe(audio_input)
|
| 84 |
+
texto_imagen = "Generate a texture image' representing the concept of: [ " + emotion_prediction + "] ambiguity. Illustrate this idea using a " + emotion_prediction + " graphic style."
|
| 85 |
image = generate_image(api_key, texto_imagen)
|
| 86 |
return emotion_prediction, transcribed_text, image
|
| 87 |
|