Luigi D'Addona
commited on
Commit
·
17a6ca8
1
Parent(s):
bd03a3e
corretto check su campo 'file_name': il campo è sempre presente ma e' stringa vuota
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
88 |
|
89 |
# Se c'e' un file associato, agginge alla question file e task_id e suggerisce il tool da utilizzare per scaricarlo
|
90 |
file_name = item.get("file_name")
|
91 |
-
if file_name
|
92 |
question_text += " file_name: {}, task:id: {} (use tool 'download_taskid_file' to get it)".format(file_name, task_id)
|
93 |
|
94 |
try:
|
|
|
88 |
|
89 |
# Se c'e' un file associato, agginge alla question file e task_id e suggerisce il tool da utilizzare per scaricarlo
|
90 |
file_name = item.get("file_name")
|
91 |
+
if file_name:
|
92 |
question_text += " file_name: {}, task:id: {} (use tool 'download_taskid_file' to get it)".format(file_name, task_id)
|
93 |
|
94 |
try:
|