lobrien001 commited on
Commit
b53b598
·
verified ·
1 Parent(s): 3fe46bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ def chat_function(index):
109
  f"Recall: {recall:.4f}\n"
110
  f"F1 Score: {f1:.4f}")
111
 
112
- full_response = f"{response}\n\nMetrics:\n{metrics_response}"
113
 
114
  chat_queue.get()
115
  logging.debug("Finished processing message")
@@ -149,7 +149,7 @@ body {
149
  with gr.Tab("Chat"):
150
  gr.Markdown("## Chat with the Bot")
151
  index_input = gr.Textbox(label="Enter dataset index:", lines=1)
152
- output = gr.Textbox(label="Response", lines=20)
153
  chat_interface = gr.Interface(fn=chat_function, inputs=[index_input], outputs=output)
154
  chat_interface.render()
155
 
 
109
  f"Recall: {recall:.4f}\n"
110
  f"F1 Score: {f1:.4f}")
111
 
112
+ full_response = f"**Record**:\nTokens: {tokens}\nGround Truth Labels: {ground_truth_labels}\n\n**Predictions**:\n{response}\n\n**Metrics**:\n{metrics_response}"
113
 
114
  chat_queue.get()
115
  logging.debug("Finished processing message")
 
149
  with gr.Tab("Chat"):
150
  gr.Markdown("## Chat with the Bot")
151
  index_input = gr.Textbox(label="Enter dataset index:", lines=1)
152
+ output = gr.Markdown(label="Response")
153
  chat_interface = gr.Interface(fn=chat_function, inputs=[index_input], outputs=output)
154
  chat_interface.render()
155