Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -144,17 +144,14 @@ me = Me()
|
|
144 |
with gr.Blocks(title="Jacob Isaacson Chatbot") as iface:
|
145 |
with gr.Row():
|
146 |
gr.Image("jacob.png", width=120, show_label=False)
|
147 |
-
gr.Markdown("### Chat with Jacob Isaacson\nAsk about Jacob's background, skills, or
|
148 |
|
149 |
gr.ChatInterface(
|
150 |
fn=me.chat_stream,
|
151 |
chatbot=gr.Chatbot(show_copy_button=True),
|
152 |
examples=["What is Jacob's experience with AI?", "Tell me about his recent projects."],
|
153 |
-
|
154 |
-
clear_btn="🗑️ Clear",
|
155 |
-
submit_btn="💬 Send",
|
156 |
)
|
157 |
|
158 |
if __name__ == "__main__":
|
159 |
iface.launch()
|
160 |
-
|
|
|
144 |
with gr.Blocks(title="Jacob Isaacson Chatbot") as iface:
|
145 |
with gr.Row():
|
146 |
gr.Image("jacob.png", width=120, show_label=False)
|
147 |
+
gr.Markdown("### Chat with Jacob Isaacson\nAsk about Jacob's background, skills, or projects. 🛡️ *Chat is logged.*")
|
148 |
|
149 |
gr.ChatInterface(
|
150 |
fn=me.chat_stream,
|
151 |
chatbot=gr.Chatbot(show_copy_button=True),
|
152 |
examples=["What is Jacob's experience with AI?", "Tell me about his recent projects."],
|
153 |
+
type="messages" # ✅ OpenAI-style message format
|
|
|
|
|
154 |
)
|
155 |
|
156 |
if __name__ == "__main__":
|
157 |
iface.launch()
|
|