tanveeshsingh commited on
Commit
01c8c6c
1 Parent(s): 0adb712

Dialog changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ ANSWER:
23
  """)
24
 
25
  def update_inputs(input_style):
26
- if input_style == "Conv":
27
  return gr.update(visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
28
  elif input_style == "NLI":
29
  return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False)
@@ -66,7 +66,7 @@ Your output should be in JSON FORMAT with the keys "REASONING" and "SCORE":
66
 
67
  # Function to judge reliability based on the selected input format
68
  async def judge_reliability(input_style, document, conversation, claim, question, answer):
69
- if input_style == "Conv":
70
  conversation = json.loads(conversation)
71
  print(conversation)
72
  outputs= await collinear.judge.veritas.conversation(document,conversation[:-1],conversation[-1])
 
23
  """)
24
 
25
  def update_inputs(input_style):
26
+ if input_style == "Dialog":
27
  return gr.update(visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
28
  elif input_style == "NLI":
29
  return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False)
 
66
 
67
  # Function to judge reliability based on the selected input format
68
  async def judge_reliability(input_style, document, conversation, claim, question, answer):
69
+ if input_style == "Dialog":
70
  conversation = json.loads(conversation)
71
  print(conversation)
72
  outputs= await collinear.judge.veritas.conversation(document,conversation[:-1],conversation[-1])