Spaces:
Sleeping
Sleeping
Leonardo Kamigauti
commited on
Commit
·
64bc092
1
Parent(s):
bdae994
Add intro message
Browse files- Gradio_UI.py +3 -0
Gradio_UI.py
CHANGED
|
@@ -262,10 +262,13 @@ class GradioUI:
|
|
| 262 |
def launch(self, **kwargs):
|
| 263 |
import gradio as gr
|
| 264 |
|
|
|
|
|
|
|
| 265 |
with gr.Blocks(fill_height=True) as demo:
|
| 266 |
stored_messages = gr.State([])
|
| 267 |
file_uploads_log = gr.State([])
|
| 268 |
chatbot = gr.Chatbot(
|
|
|
|
| 269 |
label="Agent",
|
| 270 |
type="messages",
|
| 271 |
avatar_images=(
|
|
|
|
| 262 |
def launch(self, **kwargs):
|
| 263 |
import gradio as gr
|
| 264 |
|
| 265 |
+
history = [gr.ChatMessage(role="assistant", content="I am a professor assistant for the Data Science course! Please describe your current study needs and knowledge level and I will provide you with a custom code exercise.")]
|
| 266 |
+
|
| 267 |
with gr.Blocks(fill_height=True) as demo:
|
| 268 |
stored_messages = gr.State([])
|
| 269 |
file_uploads_log = gr.State([])
|
| 270 |
chatbot = gr.Chatbot(
|
| 271 |
+
history
|
| 272 |
label="Agent",
|
| 273 |
type="messages",
|
| 274 |
avatar_images=(
|