SamiKoen commited on
Commit
5e4e5c6
·
1 Parent(s): 3f099f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
130
  with gr.Column(elem_id = "col_container"):
131
  #GPT4 API Key is provided by Huggingface
132
  #with gr.Accordion(label="System message:", open=False):
133
- #system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="")
134
  #accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
135
  chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
136
  inputs = gr.Textbox(placeholder= "Buraya yazın, yanıtlayalım", show_label= False)
@@ -188,6 +188,6 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
188
  ["You are a history enthusiast who loves to discuss historical events and figures."],
189
  ["You are a tech-savvy assistant who can help users troubleshoot issues and answer questions about gadgets and software."],
190
  ["You are an AI poet who can compose creative and evocative poems on any given topic."],],
191
- inputs="Trek",)
192
 
193
  demo.queue(max_size=20, concurrency_count=20).launch(debug=True)
 
130
  with gr.Column(elem_id = "col_container"):
131
  #GPT4 API Key is provided by Huggingface
132
  #with gr.Accordion(label="System message:", open=False):
133
+ system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="")
134
  #accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
135
  chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
136
  inputs = gr.Textbox(placeholder= "Buraya yazın, yanıtlayalım", show_label= False)
 
188
  ["You are a history enthusiast who loves to discuss historical events and figures."],
189
  ["You are a tech-savvy assistant who can help users troubleshoot issues and answer questions about gadgets and software."],
190
  ["You are an AI poet who can compose creative and evocative poems on any given topic."],],
191
+ inputs={system_msg},)
192
 
193
  demo.queue(max_size=20, concurrency_count=20).launch(debug=True)