Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,10 +86,14 @@ falcon_bot = FalconChatBot()
|
|
| 86 |
title = "👋🏻Welcome to Tonic's 🦅Falcon's Medical👨🏻⚕️Expert Chat🚀"
|
| 87 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 🤗HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
examples = [
|
| 90 |
[
|
| 91 |
{
|
| 92 |
-
"user_message": "
|
| 93 |
"assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
|
| 94 |
"history": [],
|
| 95 |
"temperature": 0.4,
|
|
@@ -102,6 +106,8 @@ examples = [
|
|
| 102 |
|
| 103 |
|
| 104 |
|
|
|
|
|
|
|
| 105 |
additional_inputs=[
|
| 106 |
gr.Textbox("", label="Optional system prompt"),
|
| 107 |
gr.Slider(
|
|
|
|
| 86 |
title = "👋🏻Welcome to Tonic's 🦅Falcon's Medical👨🏻⚕️Expert Chat🚀"
|
| 87 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 🤗HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
| 88 |
|
| 89 |
+
history = [
|
| 90 |
+
{"user": "hi there how can you help me?", "assistant": "Hello, my name is Gaia, i'm created by Tonic, i can answer questions about medicine and public health!"},
|
| 91 |
+
# Add more user and assistant messages as needed
|
| 92 |
+
]
|
| 93 |
examples = [
|
| 94 |
[
|
| 95 |
{
|
| 96 |
+
"user_message": "What is the proper treatment for buccal herpes?",
|
| 97 |
"assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
|
| 98 |
"history": [],
|
| 99 |
"temperature": 0.4,
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
+
|
| 110 |
+
|
| 111 |
additional_inputs=[
|
| 112 |
gr.Textbox("", label="Optional system prompt"),
|
| 113 |
gr.Slider(
|