Mayur2 commited on
Commit
3d8efe9
·
1 Parent(s): 9ce873e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -119,6 +119,7 @@ def upload_and_process(image, promptText, promptImg, lens_option, n_images, size
119
  split_pairs = responses.split(" ")
120
 
121
  # Initialize an empty dictionary to store the key-value pairs
 
122
  key = None
123
  value = ""
124
  for pair in split_pairs:
@@ -135,7 +136,7 @@ def upload_and_process(image, promptText, promptImg, lens_option, n_images, size
135
 
136
  # Print each key-value pair on a new line
137
  for key, value in key_value_dict.items():
138
- print(key + ": " + value)
139
  # json_string = responses.strip()
140
 
141
  # # Add indentation and new lines after each key-value pair
 
119
  split_pairs = responses.split(" ")
120
 
121
  # Initialize an empty dictionary to store the key-value pairs
122
+ key_value_dict = {}
123
  key = None
124
  value = ""
125
  for pair in split_pairs:
 
136
 
137
  # Print each key-value pair on a new line
138
  for key, value in key_value_dict.items():
139
+ print("He",key + ": " + value)
140
  # json_string = responses.strip()
141
 
142
  # # Add indentation and new lines after each key-value pair