Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def generate_image(emotion_prediction, transcribed_text, output_resolution=(1024
|
|
78 |
image_file_path = f'TAI_Images/TerraIncognita{random.randint(0, 9)}.jpg'
|
79 |
files = {
|
80 |
'image': open(image_file_path, 'rb'),
|
81 |
-
|
82 |
|
83 |
}
|
84 |
response = requests.post(url, headers=headers, files=files)
|
|
|
78 |
image_file_path = f'TAI_Images/TerraIncognita{random.randint(0, 9)}.jpg'
|
79 |
files = {
|
80 |
'image': open(image_file_path, 'rb'),
|
81 |
+
'text': "Generate Patagonian Monsters' with a " + emotion_prediction + " attitude, representing the idea of: [ "+ transcribed_text + "]. Illustrate this using asemic writings in an old map style."
|
82 |
|
83 |
}
|
84 |
response = requests.post(url, headers=headers, files=files)
|