Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,14 +10,14 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def get_med_answer(
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
-
"""A tool for
|
| 16 |
Args:
|
| 17 |
-
|
| 18 |
"""
|
| 19 |
medchat = MedChat()
|
| 20 |
-
answer = medchat(
|
| 21 |
return answer
|
| 22 |
|
| 23 |
@tool
|
|
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def get_med_answer(question:str)-> str: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
+
"""A tool for answering on health related questions
|
| 16 |
Args:
|
| 17 |
+
question: takes text description for medical question
|
| 18 |
"""
|
| 19 |
medchat = MedChat()
|
| 20 |
+
answer = medchat(question)
|
| 21 |
return answer
|
| 22 |
|
| 23 |
@tool
|