Spaces:
Running
Running
siddhartharya
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -534,7 +534,7 @@ Navigate through the tabs to explore each feature in detail.
|
|
534 |
- In the **"βοΈ Ask about your bookmarks"** textbox, type your question or keyword related to your bookmarks. For example, "Do I have any bookmarks about GenerativeAI?"
|
535 |
|
536 |
2. **π¨ Submit Your Query:**
|
537 |
-
- You can either press the **
|
538 |
|
539 |
3. **π Receive AI-Driven Responses:**
|
540 |
- SmartMarks will analyze your query and provide relevant bookmarks that match your request, making it easier to find specific links without manual searching.
|
@@ -545,13 +545,14 @@ Navigate through the tabs to explore each feature in detail.
|
|
545 |
|
546 |
with gr.Row():
|
547 |
chat_history_display = gr.Chatbot(label="π¨οΈ Chat History")
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
|
|
555 |
|
556 |
# When user presses Enter in chat_input
|
557 |
chat_input.submit(
|
@@ -614,8 +615,7 @@ Navigate through the tabs to explore each feature in detail.
|
|
614 |
else:
|
615 |
return [], ""
|
616 |
|
617 |
-
|
618 |
-
process_button.click(
|
619 |
refresh_manage_tab,
|
620 |
inputs=[state_bookmarks],
|
621 |
outputs=[bookmark_selector, bookmark_display_manage]
|
|
|
534 |
- In the **"βοΈ Ask about your bookmarks"** textbox, type your question or keyword related to your bookmarks. For example, "Do I have any bookmarks about GenerativeAI?"
|
535 |
|
536 |
2. **π¨ Submit Your Query:**
|
537 |
+
- You can either press the **Enter** key or click the **"π¨ Send"** button to submit your query.
|
538 |
|
539 |
3. **π Receive AI-Driven Responses:**
|
540 |
- SmartMarks will analyze your query and provide relevant bookmarks that match your request, making it easier to find specific links without manual searching.
|
|
|
545 |
|
546 |
with gr.Row():
|
547 |
chat_history_display = gr.Chatbot(label="π¨οΈ Chat History")
|
548 |
+
with gr.Column(scale=1):
|
549 |
+
chat_input = gr.Textbox(
|
550 |
+
label="βοΈ Ask about your bookmarks",
|
551 |
+
placeholder="e.g., Do I have any bookmarks about GenerativeAI?",
|
552 |
+
lines=1,
|
553 |
+
interactive=True
|
554 |
+
)
|
555 |
+
chat_button = gr.Button("π¨ Send")
|
556 |
|
557 |
# When user presses Enter in chat_input
|
558 |
chat_input.submit(
|
|
|
615 |
else:
|
616 |
return [], ""
|
617 |
|
618 |
+
refresh_button.click(
|
|
|
619 |
refresh_manage_tab,
|
620 |
inputs=[state_bookmarks],
|
621 |
outputs=[bookmark_selector, bookmark_display_manage]
|