Spaces:
Running
Running
Demosthene-OR
commited on
Commit
·
a806342
1
Parent(s):
70d35b5
Update google_drive_read_preprompt.py
Browse files
tabs/google_drive_read_preprompt.py
CHANGED
@@ -79,9 +79,6 @@ def read_param():
|
|
79 |
# Lire et afficher le contenu d'un fichier
|
80 |
try:
|
81 |
lines = read_google_doc(GOOGLE_PREPROMPT_FILE_ID)
|
82 |
-
print("\nContenu du document ligne par ligne :")
|
83 |
-
# for idx, line in enumerate(lines, start=1):
|
84 |
-
# print(f"Ligne {idx}: {line}")
|
85 |
return lines
|
86 |
except Exception as e:
|
87 |
st.write(f"Erreur : {e}")
|
@@ -113,9 +110,6 @@ def format_param():
|
|
113 |
while i < len(lines):
|
114 |
question.append(lines[i])
|
115 |
i += 1
|
116 |
-
print("label:\n", label)
|
117 |
-
print("question:\n", question)
|
118 |
-
print("options:\n", options)
|
119 |
except Exception as e:
|
120 |
st.write(f"Erreur : {e}")
|
121 |
return label, question, options
|
|
|
79 |
# Lire et afficher le contenu d'un fichier
|
80 |
try:
|
81 |
lines = read_google_doc(GOOGLE_PREPROMPT_FILE_ID)
|
|
|
|
|
|
|
82 |
return lines
|
83 |
except Exception as e:
|
84 |
st.write(f"Erreur : {e}")
|
|
|
110 |
while i < len(lines):
|
111 |
question.append(lines[i])
|
112 |
i += 1
|
|
|
|
|
|
|
113 |
except Exception as e:
|
114 |
st.write(f"Erreur : {e}")
|
115 |
return label, question, options
|