Dave67350 commited on
Commit
dc3da40
·
verified ·
1 Parent(s): 8faecf2

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +5 -9
Gradio_UI.py CHANGED
@@ -128,16 +128,12 @@ def launch_step_by_step_ui():
128
  with gr.Blocks(fill_height=True) as demo:
129
  initial_question = QUESTIONS[0][1]
130
  initial_message = gr.ChatMessage(role="assistant", content=(
131
- "👋 Welcome! I will guide you through the AI Act compliance form.
132
  "
133
- "👋 Welcome! I will guide you through the AI Act compliance form.\n"
134
- "Let's begin with a few questions to generate your compliance register.\n"
135
- "Please answer the following:
136
-
137
- " + QUESTIONS[0][1]
138
- }
139
- ]
140
- }"
141
  ))
142
  stored_messages = gr.State([initial_message])
143
  chatbot = gr.Chatbot(type="messages", value=stored_messages)
 
128
  with gr.Blocks(fill_height=True) as demo:
129
  initial_question = QUESTIONS[0][1]
130
  initial_message = gr.ChatMessage(role="assistant", content=(
131
+ f"👋 Welcome! I will guide you through the AI Act compliance form.
132
  "
133
+ f"Let's begin with a few questions to generate your compliance register.
134
+
135
+ "
136
+ f"{initial_question}"
 
 
 
 
137
  ))
138
  stored_messages = gr.State([initial_message])
139
  chatbot = gr.Chatbot(type="messages", value=stored_messages)