tanveeshsingh commited on
Commit
73f7da6
β€’
1 Parent(s): c8bef50

Veritas Dark Mode

Browse files
Files changed (1) hide show
  1. app.py +51 -6
app.py CHANGED
@@ -64,9 +64,9 @@ Your output should be in JSON FORMAT with the keys "REASONING" and "SCORE":
64
  message = chat_completion.choices.pop().message.content
65
  message_new = message[len(message)-6:len(message)]
66
  if 'FAIL' in message_new:
67
- results = "πŸŸ₯"
68
  else:
69
- results = "🟩"
70
  else:
71
  results = 'NA'
72
  lynx_time = round(time.time() - start_time, 2) # Calculate time taken for Lynx
@@ -84,16 +84,61 @@ async def judge_reliability(input_style, document, conversation, claim, question
84
  outputs = await collinear.judge.veritas.question_answer(document,question,answer)
85
  output = outputs.judgement
86
  if output ==1:
87
- results = "🟩"
88
  else:
89
- results = "πŸŸ₯"
90
  veritas_time = round(time.time() - start_time, 2) # Calculate time taken for Veritas
91
  return results, veritas_time
92
 
93
 
94
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  # Create the interface using gr.Blocks
96
- with gr.Blocks() as demo:
97
  gr.Markdown(
98
  """
99
  <p style='text-align: center;color:white'>
 
64
  message = chat_completion.choices.pop().message.content
65
  message_new = message[len(message)-6:len(message)]
66
  if 'FAIL' in message_new:
67
+ results = "❌"
68
  else:
69
+ results = "βœ…"
70
  else:
71
  results = 'NA'
72
  lynx_time = round(time.time() - start_time, 2) # Calculate time taken for Lynx
 
84
  outputs = await collinear.judge.veritas.question_answer(document,question,answer)
85
  output = outputs.judgement
86
  if output ==1:
87
+ results = "βœ…"
88
  else:
89
+ results = "❌"
90
  veritas_time = round(time.time() - start_time, 2) # Calculate time taken for Veritas
91
  return results, veritas_time
92
 
93
 
94
+ dark_css = """
95
+ body {
96
+ background-color: #0E0F11 !important;
97
+ color: #f5f5f5 !important;
98
+ }
99
+ .gradio-app {
100
+ background-color: #0E0F11 !important;
101
+ color: #FFFFFF !important;
102
+ }
103
+ gradio-app {
104
+ background-color: #0E0F11 !important;
105
+ color: #FFFFFF !important;
106
+ }
107
+ .gradio-container {
108
+ background-color: #0E0F11 !important;
109
+ color: #FFFFFF !important;
110
+ }
111
+ .container {
112
+ background-color: #1a1a1a !important;
113
+ color: #FFFFFF !important;
114
+ }
115
+ .form {
116
+ background-color: #1a1a1a !important;
117
+ color: #FFFFFF !important;
118
+ }
119
+ .gap {
120
+ background-color: #1a1a1a !important;
121
+ color: #FFFFFF !important;
122
+ }
123
+ #orange-button{ background-color: #FFA500 !important; color: #000000}
124
+ .block {
125
+ background-color: #1a1a1a !important;
126
+ color: #FFFFFF !important;
127
+ }
128
+ .wrap {
129
+ background-color: #1a1a1a !important;
130
+ color: #FFFFFF !important;
131
+ }
132
+ textarea, input, select {
133
+ background-color: #1a1a1a !important;
134
+ color: #f5f5f5 !important;
135
+ border-color: #555555 !important;
136
+ }
137
+ label {
138
+ color: #f5f5f5 !important;
139
+ }"""
140
  # Create the interface using gr.Blocks
141
+ with gr.Blocks(css=dark_css) as demo:
142
  gr.Markdown(
143
  """
144
  <p style='text-align: center;color:white'>