nlac commited on
Commit
59b8ca7
·
1 Parent(s): c2ff863

ui improvement

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -139,7 +139,7 @@ with gr.Blocks(title="CV Search Agent") as demo:
139
  The agent uses RAG (Retrieval-Augmented Generation) to search through
140
  indexed CVs and synthesize answers based on the retrieved information.
141
 
142
- Check the project's README for the details.
143
  """
144
  )
145
 
@@ -212,7 +212,7 @@ with gr.Blocks(title="CV Search Agent") as demo:
212
  )
213
 
214
  msg = gr.Textbox(
215
- label="Your question",
216
  placeholder="Ask a question about the candidates...",
217
  lines=2,
218
  elem_id="user_prompt",
@@ -284,7 +284,18 @@ if __name__ == "__main__":
284
  position: fixed;
285
  z-index: 1;
286
  opacity: 0.9;
287
- }""",
 
 
 
 
 
 
 
 
 
 
 
288
  js="""
289
  function exampleLinkHandler(e) {
290
  e.preventDefault();
 
139
  The agent uses RAG (Retrieval-Augmented Generation) to search through
140
  indexed CVs and synthesize answers based on the retrieved information.
141
 
142
+ Check the project's [README](https://huggingface.co/spaces/nlac/cv-rag-search/blob/main/README.md) for the details.
143
  """
144
  )
145
 
 
212
  )
213
 
214
  msg = gr.Textbox(
215
+ label="Your question about the applicants",
216
  placeholder="Ask a question about the candidates...",
217
  lines=2,
218
  elem_id="user_prompt",
 
284
  position: fixed;
285
  z-index: 1;
286
  opacity: 0.9;
287
+ &:not(:has(~ .bot-row)) .message-content::after {
288
+ display: block;
289
+ content: "Thinking...";
290
+ color: gray;
291
+ font-size: 0.75rem;
292
+ }
293
+ }
294
+ #user_prompt label > span {
295
+ display: none;
296
+ }
297
+
298
+ """,
299
  js="""
300
  function exampleLinkHandler(e) {
301
  e.preventDefault();