Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ coach_code = os.getenv("COACH_CODE")
|
|
| 9 |
coach_name_short = os.getenv("COACH_NAME_SHORT")
|
| 10 |
coach_name_upper = os.getenv("COACH_NAME_UPPER")
|
| 11 |
sys_prompt_new = os.getenv("PROMPT_NEW")
|
| 12 |
-
|
| 13 |
################# End PERSONA-SPECIFIC VALUES ######################
|
| 14 |
|
| 15 |
################# Start OpenAI-SPECIFIC VALUES ######################
|
|
@@ -78,6 +78,6 @@ def predict(user_input, history):
|
|
| 78 |
return message_content
|
| 79 |
|
| 80 |
#GUI
|
| 81 |
-
with gr.Blocks(theme
|
| 82 |
gr.ChatInterface(predict, submit_btn="Chat with "+ coach_name_short, retry_btn=None, undo_btn=None, clear_btn=None, autofocus=True)
|
| 83 |
demo.launch(show_api=False)
|
|
|
|
| 9 |
coach_name_short = os.getenv("COACH_NAME_SHORT")
|
| 10 |
coach_name_upper = os.getenv("COACH_NAME_UPPER")
|
| 11 |
sys_prompt_new = os.getenv("PROMPT_NEW")
|
| 12 |
+
theme=os.getenv("THEME")
|
| 13 |
################# End PERSONA-SPECIFIC VALUES ######################
|
| 14 |
|
| 15 |
################# Start OpenAI-SPECIFIC VALUES ######################
|
|
|
|
| 78 |
return message_content
|
| 79 |
|
| 80 |
#GUI
|
| 81 |
+
with gr.Blocks(theme) as demo:
|
| 82 |
gr.ChatInterface(predict, submit_btn="Chat with "+ coach_name_short, retry_btn=None, undo_btn=None, clear_btn=None, autofocus=True)
|
| 83 |
demo.launch(show_api=False)
|