Update app.py
Browse files
app.py
CHANGED
|
@@ -171,10 +171,10 @@ def process_image(image_path, prompt):
|
|
| 171 |
encoded_string = b64encode(image_file.read()).decode()
|
| 172 |
print ("encoded string.................")
|
| 173 |
print(encoded_string)
|
| 174 |
-
|
| 175 |
# Prepare the data for the API request (specific to the API you're using)
|
| 176 |
data = {
|
| 177 |
-
'image': encoded_string,
|
| 178 |
'input': prompt,
|
| 179 |
}
|
| 180 |
return data
|
|
|
|
| 171 |
encoded_string = b64encode(image_file.read()).decode()
|
| 172 |
print ("encoded string.................")
|
| 173 |
print(encoded_string)
|
| 174 |
+
|
| 175 |
# Prepare the data for the API request (specific to the API you're using)
|
| 176 |
data = {
|
| 177 |
+
'image': "/home/user/app/data/history/bbb_1.png", #encoded_string,
|
| 178 |
'input': prompt,
|
| 179 |
}
|
| 180 |
return data
|