Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUpdate to system prompt
Update to gradio template questions
app.py
CHANGED
|
@@ -210,7 +210,12 @@ class GPTDriveIntegration:
|
|
| 210 |
"role": "system",
|
| 211 |
"content": """
|
| 212 |
You are an AI assistant that can analyze documents from Google Drive.
|
| 213 |
-
Use the provided file contents to answer user questions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
},
|
| 215 |
{
|
| 216 |
"role": "user",
|
|
@@ -375,10 +380,11 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
|
|
| 375 |
examples=[
|
| 376 |
["What is morbid Anatomy?", "morbid, Anatomy"],
|
| 377 |
["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
|
| 378 |
-
["
|
| 379 |
-
["What are the
|
| 380 |
["What is trauma?", "Trauma, pysical trauma and sex Offenders"],
|
| 381 |
-
["what is Upper limb prosthetics?", "Upper limb prosthetics"]
|
|
|
|
| 382 |
|
| 383 |
],
|
| 384 |
inputs=[query_input, search_terms_input],
|
|
|
|
| 210 |
"role": "system",
|
| 211 |
"content": """
|
| 212 |
You are an AI assistant that can analyze documents from Google Drive.
|
| 213 |
+
Use the provided file contents to answer user questions.
|
| 214 |
+
Answer directly and add additional suggestions on how to answer questions in the exam
|
| 215 |
+
Always end with 'Is there anything I can hel you with?'
|
| 216 |
+
Your name is Study buddy, happy to help students study more effectively
|
| 217 |
+
|
| 218 |
+
"""
|
| 219 |
},
|
| 220 |
{
|
| 221 |
"role": "user",
|
|
|
|
| 380 |
examples=[
|
| 381 |
["What is morbid Anatomy?", "morbid, Anatomy"],
|
| 382 |
["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
|
| 383 |
+
["Explain what the external ear contains of?", "Ear Anatomy, Ear"],
|
| 384 |
+
["What are the types of massage?", "massage Lecture, nerves"],
|
| 385 |
["What is trauma?", "Trauma, pysical trauma and sex Offenders"],
|
| 386 |
+
["what is Upper limb prosthetics?", "Upper limb prosthetics"],
|
| 387 |
+
["what are the steps of mummmification","Embalming]"
|
| 388 |
|
| 389 |
],
|
| 390 |
inputs=[query_input, search_terms_input],
|