Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
1d4b77d
1
Parent(s):
3917bae
test
Browse files
app.py
CHANGED
@@ -141,8 +141,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
141 |
file_name = item.get("file_name")
|
142 |
question_text_for_agent = question_text
|
143 |
if file_name:
|
144 |
-
|
145 |
-
|
146 |
if file_name.endswith(('.mp3', '.xlsx', '.png')):
|
147 |
base64_attatched_file = get_text_file_contents(f'./files/{file_name}.b64')
|
148 |
question_text_for_agent += f'. The content in base64 of the attatched file mentioned in the question is the following: {base64_attatched_file}'
|
|
|
141 |
file_name = item.get("file_name")
|
142 |
question_text_for_agent = question_text
|
143 |
if file_name:
|
144 |
+
print(f"The following question has attatched file: {question_text[:10]}")
|
145 |
+
|
146 |
if file_name.endswith(('.mp3', '.xlsx', '.png')):
|
147 |
base64_attatched_file = get_text_file_contents(f'./files/{file_name}.b64')
|
148 |
question_text_for_agent += f'. The content in base64 of the attatched file mentioned in the question is the following: {base64_attatched_file}'
|