Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ coach_name_short = "General Patton"
|
|
| 9 |
coach_name_upper = "GENERAL PATTON"
|
| 10 |
coach_name_long = "General George S. Patton"
|
| 11 |
sys_prompt_new = os.getenv("PROMPT_NEW")
|
|
|
|
| 12 |
################# End PERSONA-SPECIFIC VALUES ######################
|
| 13 |
|
| 14 |
################# Start OpenAI-SPECIFIC VALUES ######################
|
|
@@ -50,7 +51,6 @@ def predict(user_input, history):
|
|
| 50 |
return message_content
|
| 51 |
|
| 52 |
#GUI
|
| 53 |
-
theme = gr.themes.Default()
|
| 54 |
with gr.Blocks(theme) as demo:
|
| 55 |
gr.ChatInterface(predict, submit_btn="Chat with "+ coach_name_short, retry_btn=None, undo_btn=None, clear_btn=None, autofocus=True)
|
| 56 |
demo.launch(show_api=False)
|
|
|
|
| 9 |
coach_name_upper = "GENERAL PATTON"
|
| 10 |
coach_name_long = "General George S. Patton"
|
| 11 |
sys_prompt_new = os.getenv("PROMPT_NEW")
|
| 12 |
+
theme = gr.themes.Default()
|
| 13 |
################# End PERSONA-SPECIFIC VALUES ######################
|
| 14 |
|
| 15 |
################# Start OpenAI-SPECIFIC VALUES ######################
|
|
|
|
| 51 |
return message_content
|
| 52 |
|
| 53 |
#GUI
|
|
|
|
| 54 |
with gr.Blocks(theme) as demo:
|
| 55 |
gr.ChatInterface(predict, submit_btn="Chat with "+ coach_name_short, retry_btn=None, undo_btn=None, clear_btn=None, autofocus=True)
|
| 56 |
demo.launch(show_api=False)
|