Spaces:
Sleeping
Sleeping
feat: falcon summarization
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ DATA_DIR = "/data" if os.path.exists("/data") else "."
|
|
17 |
DATASET_DIR = os.path.join(DATA_DIR, "rag_dataset")
|
18 |
DATASET_PATH = os.path.join(DATASET_DIR, "dataset")
|
19 |
TOKENIZER_MODEL = "google/flan-t5-small"
|
20 |
-
|
21 |
-
SUMMARIZATION_MODEL="rhaymison/t5-portuguese-small-summarization"
|
22 |
|
23 |
@st.cache_resource
|
24 |
def load_local_model():
|
@@ -220,11 +220,16 @@ Research Papers:
|
|
220 |
|
221 |
Instructions:
|
222 |
|
223 |
-
Start with a simple explanation
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
|
|
|
|
|
|
|
|
|
|
228 |
Write your answer in a friendly and accessible tone, ensuring that anyone, regardless of their background knowledge, can understand the information provided."""
|
229 |
|
230 |
try:
|
|
|
17 |
DATASET_DIR = os.path.join(DATA_DIR, "rag_dataset")
|
18 |
DATASET_PATH = os.path.join(DATASET_DIR, "dataset")
|
19 |
TOKENIZER_MODEL = "google/flan-t5-small"
|
20 |
+
SUMMARIZATION_MODEL= "Falconsai/text_summarization"
|
21 |
+
# SUMMARIZATION_MODEL="rhaymison/t5-portuguese-small-summarization"
|
22 |
|
23 |
@st.cache_resource
|
24 |
def load_local_model():
|
|
|
220 |
|
221 |
Instructions:
|
222 |
|
223 |
+
Start with a simple explanation
|
224 |
+
- Clearly define what autism is in an easy-to-understand way, avoiding overly complex technical terms.
|
225 |
+
- Use real-life examples
|
226 |
+
- Whenever possible, include practical examples to illustrate key concepts.
|
227 |
+
- Relates research in an accessible way
|
228 |
+
- Instead of just referencing papers, explain their findings in a way that anyone can understand. Example: "A study from X University found that..."
|
229 |
+
- Avoid scientific jargon
|
230 |
+
- If a technical term is necessary, provide a simple explanation.
|
231 |
+
- Organize the response into sections
|
232 |
+
- Use lists and short paragraphs to improve readability.
|
233 |
Write your answer in a friendly and accessible tone, ensuring that anyone, regardless of their background knowledge, can understand the information provided."""
|
234 |
|
235 |
try:
|