Spaces:
Sleeping
Sleeping
Commit
·
3fd3bcd
1
Parent(s):
4e0c6e1
added initial message to the chat
Browse files
app.py
CHANGED
@@ -62,11 +62,14 @@ def bot(history, plot_creator):
|
|
62 |
|
63 |
return history, plot_creator
|
64 |
|
|
|
65 |
|
66 |
with gr.Blocks() as demo:
|
67 |
gr.Markdown("# GPT MAVPlot\n\nThis web-based tool allows users to upload mavlink tlogs in which the chat bot will use to generate plots from. It does this by creating a python script using pymavlink and matplotlib. The output includes the plot and the code used to generate it. ")
|
68 |
plot_creator = gr.State(PlotCreator())
|
69 |
-
|
|
|
|
|
70 |
|
71 |
with gr.Row():
|
72 |
with gr.Column(scale=0.85):
|
|
|
62 |
|
63 |
return history, plot_creator
|
64 |
|
65 |
+
initial_message = (None, "Hello! I am a chat bot designed to plot logs from drones. To get started, please upload a log file. Then ask me to generate a plot! If you need an example log you can download one from here: https://drive.google.com/file/d/1BKv-NbSvYQz9XqqmyOyOhe3o4PAFDyZa/view?usp=sharing")
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("# GPT MAVPlot\n\nThis web-based tool allows users to upload mavlink tlogs in which the chat bot will use to generate plots from. It does this by creating a python script using pymavlink and matplotlib. The output includes the plot and the code used to generate it. ")
|
69 |
plot_creator = gr.State(PlotCreator())
|
70 |
+
|
71 |
+
chatbot = gr.Chatbot([initial_message], elem_id="chatbot").style(height=750)
|
72 |
+
|
73 |
|
74 |
with gr.Row():
|
75 |
with gr.Column(scale=0.85):
|