GattoNero commited on
Commit
02426fb
·
verified ·
1 Parent(s): db6e4d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -84,6 +84,8 @@ class BasicAgent:
84
  text = q_data.get("question", "")
85
  file_info = q_data.get("file")
86
 
 
 
87
  # Se è presente un file, gestiscilo
88
  if file_info:
89
  file_name = file_info.get("name", "")
@@ -106,6 +108,8 @@ class BasicAgent:
106
  text_content = self._load_text(file_data)
107
  return self._ask_gpt4o(text_content)
108
 
 
 
109
  # Altrimenti gestisci solo testo
110
  return self._ask_gpt4o(text)
111
 
 
84
  text = q_data.get("question", "")
85
  file_info = q_data.get("file")
86
 
87
+ print(f"coso file_info: {file_info}")
88
+
89
  # Se è presente un file, gestiscilo
90
  if file_info:
91
  file_name = file_info.get("name", "")
 
108
  text_content = self._load_text(file_data)
109
  return self._ask_gpt4o(text_content)
110
 
111
+
112
+ print("coso nessun file allegato")
113
  # Altrimenti gestisci solo testo
114
  return self._ask_gpt4o(text)
115