HonestAnnie commited on
Commit
bf958a8
1 Parent(s): 5c6f6a0

changed placeholder

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,10 +46,10 @@ def query_chroma(collection, embedding, authors):
46
  return formatted_results
47
 
48
  with gr.Blocks(css=".custom-markdown { border: 1px solid #ccc; padding: 10px; border-radius: 5px; }") as demo:
49
- gr.Markdown("Enter your query, filter authors (default is all), click **Search** to search. Delimit multiple queries with semicola; since there is a search-quota for each user (based on IP) it makes sense to query in batches (if you enjoy querying that is).")
50
  database_inp = gr.Dropdown(label="Database", choices=["German", "English"], value="German")
51
  author_inp = gr.Dropdown(label="Authors", choices=authors_list_de, multiselect=True)
52
- inp = gr.Textbox(label="Query", placeholder="Wie kann ich gesund leben und bedeutet Gesundheit für jeden das gleiche?; Why is life so difficult and aren't there any shortcuts?")
53
  btn = gr.Button("Search")
54
  results = gr.State()
55
 
 
46
  return formatted_results
47
 
48
  with gr.Blocks(css=".custom-markdown { border: 1px solid #ccc; padding: 10px; border-radius: 5px; }") as demo:
49
+ gr.Markdown("Enter your query, filter authors (default is all), click **Search** to search. Delimit multiple queries with semicola; since there is a quota for each user (based on IP) it makes sense to query in batches. The search takes around 50 seconds because the embedding model needs to be loaded to a GPU each time (another reason to do multiple queries at once).")
50
  database_inp = gr.Dropdown(label="Database", choices=["German", "English"], value="German")
51
  author_inp = gr.Dropdown(label="Authors", choices=authors_list_de, multiselect=True)
52
+ inp = gr.Textbox(label="Query", placeholder="Wie kann ich gesund leben und bedeutet Gesundheit für jeden das gleiche?; Was ist der Sinn des Lebens?; ...")
53
  btn = gr.Button("Search")
54
  results = gr.State()
55