Sanchit Verma commited on
Commit ·
1567745
1
Parent(s): 64c62b3
Update default persona to Motivational Coach and fix syntax error in app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from utils import generate_response
|
|
| 4 |
from config import DEFAULT_PERSONA
|
| 5 |
|
| 6 |
|
| 7 |
-
def handle_message(persona, user_input, history):
|
| 8 |
"""
|
| 9 |
Handle a new message in the chat.
|
| 10 |
|
|
@@ -72,4 +72,4 @@ with gr.Blocks() as app:
|
|
| 72 |
|
| 73 |
# main function
|
| 74 |
if __name__ == "__main__":
|
| 75 |
-
app.launch()
|
|
|
|
| 4 |
from config import DEFAULT_PERSONA
|
| 5 |
|
| 6 |
|
| 7 |
+
def handle_message(persona, user_input, history):
|
| 8 |
"""
|
| 9 |
Handle a new message in the chat.
|
| 10 |
|
|
|
|
| 72 |
|
| 73 |
# main function
|
| 74 |
if __name__ == "__main__":
|
| 75 |
+
app.launch()
|
config.py
CHANGED
|
@@ -17,6 +17,6 @@ OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY", "")
|
|
| 17 |
OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "openai/gpt-4")
|
| 18 |
|
| 19 |
# UI + LLM behavior config
|
| 20 |
-
DEFAULT_PERSONA = "
|
| 21 |
TEMPERATURE = 0.7
|
| 22 |
MAX_TURNS = 10
|
|
|
|
| 17 |
OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "openai/gpt-4")
|
| 18 |
|
| 19 |
# UI + LLM behavior config
|
| 20 |
+
DEFAULT_PERSONA = "Motivational Coach"
|
| 21 |
TEMPERATURE = 0.7
|
| 22 |
MAX_TURNS = 10
|