jozzy commited on
Commit
4692dc2
·
1 Parent(s): 1208796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -229,11 +229,14 @@ def show():
229
  with gr.Blocks() as FeedBack:
230
  gr.Markdown("Record Feedback for the ROCm Usage Tutor, using the following three buttons to record three different errors:\n 1. ROCm-related contexts not included in the ROCm repo.\n 2. Context included in the repo, but the vector server fails to find it.\n 3. The LLM model fails to understand the context.")
231
  notin_btn = gr.Button("Not_In_Err")
232
- notin_btn.click(fn=not_in_error, inputs=None, outputs="text", queue=False)
 
233
  notfound_btn = gr.Button("Not_Found_Err")
234
- notfound_btn.click(fn=not_found_error, inputs=None, outputs="text", queue=False)
 
235
  llmerr_btn = gr.Button("LLM_Err")
236
- llmerr_btn.click(fn=llm_error, inputs=None, outputs="text", queue=False)
 
237
  listerr_btn = gr.Button("List_Erros")
238
  listerr_btn.click(fn=list_erros, inputs=None, outputs="text", queue=False)
239
 
 
229
  with gr.Blocks() as FeedBack:
230
  gr.Markdown("Record Feedback for the ROCm Usage Tutor, using the following three buttons to record three different errors:\n 1. ROCm-related contexts not included in the ROCm repo.\n 2. Context included in the repo, but the vector server fails to find it.\n 3. The LLM model fails to understand the context.")
231
  notin_btn = gr.Button("Not_In_Err")
232
+ notin = gr.Textbox()
233
+ notin_btn.click(fn=not_in_error, inputs=None, outputs=notin, queue=False)
234
  notfound_btn = gr.Button("Not_Found_Err")
235
+ notfound = gr.Textbox()
236
+ notfound_btn.click(fn=not_found_error, inputs=None, outputs=notfound, queue=False)
237
  llmerr_btn = gr.Button("LLM_Err")
238
+ llmerr = gr.Textbox()
239
+ llmerr_btn.click(fn=llm_error, inputs=None, outputs=llmerr, queue=False)
240
  listerr_btn = gr.Button("List_Erros")
241
  listerr_btn.click(fn=list_erros, inputs=None, outputs="text", queue=False)
242