clementsan commited on
Commit
8aeeae1
1 Parent(s): a25f0eb

Update additional gradio label descriptions

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -205,7 +205,10 @@ def demo():
205
  with gr.Row():
206
  db_btn = gr.Button("Generating vector database...")
207
 
208
- with gr.Tab("Step 2 - Initializing QA chain"):
 
 
 
209
  with gr.Row():
210
  llm_btn = gr.Radio(list_llm_simple, \
211
  label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
@@ -214,11 +217,11 @@ def demo():
214
  slider_maxtokens = gr.Slider(minimum = 224, maximum = 4096, value=1024, step=32, label="Max Tokens", info="Model max tokens", interactive=True)
215
  slider_topk = gr.Slider(minimum = 1, maximum = 10, value=3, step=1, label="top-k samples", info="Model top-k samples", interactive=True)
216
  with gr.Row():
217
- llm_progress = gr.Textbox(value="None",label="QA chain Initialization")
218
  with gr.Row():
219
- qachain_btn = gr.Button("Question-Answering chain Initialization...")
220
 
221
- with gr.Tab("Step 3 - Conversation"):
222
  chatbot = gr.Chatbot(height=300)
223
  with gr.Row():
224
  msg = gr.Textbox(placeholder="Type message", container=True)
 
205
  with gr.Row():
206
  db_btn = gr.Button("Generating vector database...")
207
 
208
+ with gr.Tab("Step 2 - QA chain initialization"):
209
+ gr.Markdown(
210
+ """<b>Note:</b> This space uses the free CPU Basic hardware from Hugging Face. The LLM models used below (free inference endpoints) can take some time to generate a reply.
211
+ """)
212
  with gr.Row():
213
  llm_btn = gr.Radio(list_llm_simple, \
214
  label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
 
217
  slider_maxtokens = gr.Slider(minimum = 224, maximum = 4096, value=1024, step=32, label="Max Tokens", info="Model max tokens", interactive=True)
218
  slider_topk = gr.Slider(minimum = 1, maximum = 10, value=3, step=1, label="top-k samples", info="Model top-k samples", interactive=True)
219
  with gr.Row():
220
+ llm_progress = gr.Textbox(value="None",label="QA chain initialization")
221
  with gr.Row():
222
+ qachain_btn = gr.Button("Initializing question-answering chain...")
223
 
224
+ with gr.Tab("Step 3 - Conversation with chatbot"):
225
  chatbot = gr.Chatbot(height=300)
226
  with gr.Row():
227
  msg = gr.Textbox(placeholder="Type message", container=True)