siddhartharya commited on
Commit
a369bd8
Β·
verified Β·
1 Parent(s): 813db16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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 **"πŸ“¨ Send"** button or simply press the **Enter** key 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,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
- chat_input = gr.Textbox(
549
- label="✍️ Ask about your bookmarks",
550
- placeholder="e.g., Do I have any bookmarks about GenerativeAI?",
551
- lines=1,
552
- interactive=True
553
- )
554
- chat_button = gr.Button("πŸ“¨ Send")
 
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
- # Link process_uploaded_file to update Manage Bookmarks Tab
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]