Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -112,10 +112,17 @@ def upload_files(files):
|
|
112 |
print(f"Error processing files: {e}")
|
113 |
return f"Error processing files: {e}"
|
114 |
|
115 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
prompt_template = """
|
117 |
-
Answer the question
|
118 |
-
If the answer is not in the provided context, just say, "answer is not available in the context".
|
119 |
Don't provide the wrong answer.
|
120 |
|
121 |
Context:
|
@@ -196,6 +203,7 @@ demo.launch()
|
|
196 |
|
197 |
|
198 |
|
|
|
199 |
|
200 |
|
201 |
|
|
|
112 |
print(f"Error processing files: {e}")
|
113 |
return f"Error processing files: {e}"
|
114 |
|
115 |
+
# Consolidated and simplified context for transfer learning
|
116 |
+
transfer_learning_context = """
|
117 |
+
Transfer learning means using what we've learned from one thing to help us do another thing.
|
118 |
+
For example, learning to play the piano can help you learn to play the guitar, because both involve understanding musical concepts.
|
119 |
+
Similarly, understanding mathematics can help you learn physics, because both involve analytical skills.
|
120 |
+
"""
|
121 |
+
|
122 |
+
# Single prompt for multiple questions
|
123 |
prompt_template = """
|
124 |
+
Answer the question based on the provided context.
|
125 |
+
If the answer is not in the provided context, just say, "answer is not available in the context".
|
126 |
Don't provide the wrong answer.
|
127 |
|
128 |
Context:
|
|
|
203 |
|
204 |
|
205 |
|
206 |
+
|
207 |
|
208 |
|
209 |
|