Siddhant commited on
Commit
aa88060
·
verified ·
1 Parent(s): bf4e9b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -514,6 +514,7 @@ default_instruct=(
514
  "provide concise and complete responses of "
515
  "less than 15 words."
516
  )
 
517
  examples = pd.DataFrame([
518
  ["General Purpose Conversation", default_instruct],
519
  ["Translation", "You are a translator. Translate user text into English."],
@@ -652,6 +653,9 @@ with gr.Blocks(
652
  )
653
  output_eval_text = gr.Textbox(label="Evaluation Results")
654
  state = gr.State()
 
 
 
655
  with gr.Row():
656
  privacy_text = gr.Textbox(
657
  label="Privacy Notice",
 
514
  "provide concise and complete responses of "
515
  "less than 15 words."
516
  )
517
+ import pandas as pd
518
  examples = pd.DataFrame([
519
  ["General Purpose Conversation", default_instruct],
520
  ["Translation", "You are a translator. Translate user text into English."],
 
653
  )
654
  output_eval_text = gr.Textbox(label="Evaluation Results")
655
  state = gr.State()
656
+ with gr.Row():
657
+ gr.Markdown("### Example Prompts & Responses")
658
+ gr.DataFrame(value=examples, headers=["Task", "LLM Prompt"], interactive=False)
659
  with gr.Row():
660
  privacy_text = gr.Textbox(
661
  label="Privacy Notice",