jcho02 commited on
Commit
c135cf7
·
1 Parent(s): eee1bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -26,7 +26,7 @@ def feedback_response(feedback, comments, new_input_query):
26
  worksheet = sh.worksheet(worksheet_name)
27
 
28
  # Create a DataFrame from the response and additional comments
29
- df = pd.DataFrame({'Response': [response], 'Additional Comments': [comments], 'New Input Query': [new_input_query]})
30
 
31
  # Append the data to the worksheet
32
  worksheet.append_rows(df.values.tolist())
@@ -36,6 +36,7 @@ def feedback_response(feedback, comments, new_input_query):
36
  # Set up the Gradio Interface
37
  feedback_interface = gr.Interface(
38
  fn=feedback_response,
 
39
  inputs=[
40
  gr.Radio(
41
  choices=[
@@ -45,8 +46,8 @@ feedback_interface = gr.Interface(
45
  ],
46
  label="Feedback"
47
  ),
48
- gr.Textbox(label="Additional Comments"),
49
- gr.Textbox(label="New Input Query")
50
  ],
51
  outputs="text"
52
  )
 
26
  worksheet = sh.worksheet(worksheet_name)
27
 
28
  # Create a DataFrame from the response and additional comments
29
+ df = pd.DataFrame({'New Input Query': [new_input_query],'Response': [response], 'Additional Comments': [comments]})
30
 
31
  # Append the data to the worksheet
32
  worksheet.append_rows(df.values.tolist())
 
36
  # Set up the Gradio Interface
37
  feedback_interface = gr.Interface(
38
  fn=feedback_response,
39
+ gr.Textbox(label="New Input Query"),
40
  inputs=[
41
  gr.Radio(
42
  choices=[
 
46
  ],
47
  label="Feedback"
48
  ),
49
+ gr.Textbox(label="Additional Comments")
50
+
51
  ],
52
  outputs="text"
53
  )