F4biian commited on
Commit
e9270c4
·
verified ·
1 Parent(s): d432c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -119,6 +119,12 @@ custom_css = """
119
  .score-bubble::after {
120
  opacity: 0;
121
  }
 
 
 
 
 
 
122
  </style>
123
  """
124
 
@@ -279,37 +285,37 @@ with gr.Blocks() as demo:
279
  # Example 0: Simple Fictional
280
  [
281
  "Answer strictly based on the provided context.",
282
- "Context: The planet Zorblax has 3 moons and is made entirely of green cheese.\n\nQuestion: How many moons does Zorblax have?"
283
  ],
284
  # Example 1: Parametric Interference (Paris)
285
  [
286
  "Answer strictly based on the provided context. Do not use outside knowledge.",
287
- "Context: Due to a recent treaty in 2030, the capital of France was officially moved to Lyon.\n\nQuestion: What is the capital of France?"
288
  ],
289
  # Example 2: Parametric Interference (Pisa)
290
  [
291
  "Answer strictly based on the provided context.",
292
- "Context: The Leaning Tower of Pisa is located in Pisa, Italy. It was built in the 12th century.\n\nQuestion: Where is the Leaning Tower of Pisa?"
293
  ],
294
  # Example 3: Difficult Fictional (Conditions)
295
  [
296
  "Use only the context provided.",
297
- "Context: The XJ-9000 smartphone features a 6-inch screen, 12 hours of battery life, and is water-resistant up to 2 meters for 30 minutes.\n\nQuestion: What are the water resistance specs of the XJ-9000?"
298
  ],
299
  # Example 4: Difficult Fictional (Extrinsic)
300
  [
301
  "Use only the context provided.",
302
- "Context: Dr. Aris Thorne discovered the luminescent moss 'Glowleaf' in the caves of Mount Ebon. The moss emits a faint blue light when exposed to moisture.\n\nQuestion: Tell me about Dr. Thorne's discovery."
303
  ],
304
  # Example 5: Long Context with Distractors
305
  [
306
  "Use only the context provided.",
307
- "Context: Project Chronos was initiated in 2042 by Apex Dynamics to explore the Mariana Trench using the 'Abyss-1' submersible. The team consisted of 12 marine biologists and 4 engineers. The primary objective was to locate the rare 'Lumina' coral. During the 3-week expedition, they discovered a new species of blind shrimp, but the Lumina coral was not found. A secondary mission, Project Helios, was planned for 2045 to explore the Arctic Ocean. The Abyss-1 submersible suffered minor thruster damage on day 14, forcing the team to rely on backup navigation.\n\nQuestion: Summarize the details and outcome of Project Chronos."
308
  ],
309
  # Example 6: Unanswerable Context with Distractor
310
  [
311
  "Answer strictly based on the provided context.",
312
- "Context: The Orion V2 smartwatch features a titanium casing, a heart-rate monitor, and a 4-day battery life. It is available in Silver and Midnight Black. The previous model, Orion V1, included a sleep tracking feature that was highly praised by users.\n\nQuestion: Does the Orion V2 smartwatch have sleep tracking?"
313
  ]
314
  ],
315
  inputs=[system_prompt_input_gen, prompt_input_gen],
 
119
  .score-bubble::after {
120
  opacity: 0;
121
  }
122
+
123
+ .tabitem table tbody td {
124
+ display: table-cell !important;
125
+ visibility: visible !important;
126
+ opacity: 1 !important;
127
+ }
128
  </style>
129
  """
130
 
 
285
  # Example 0: Simple Fictional
286
  [
287
  "Answer strictly based on the provided context.",
288
+ "Context: The planet Zorblax has 3 moons and is made entirely of green cheese. Question: How many moons does Zorblax have?"
289
  ],
290
  # Example 1: Parametric Interference (Paris)
291
  [
292
  "Answer strictly based on the provided context. Do not use outside knowledge.",
293
+ "Context: Due to a recent treaty in 2030, the capital of France was officially moved to Lyon. Question: What is the capital of France?"
294
  ],
295
  # Example 2: Parametric Interference (Pisa)
296
  [
297
  "Answer strictly based on the provided context.",
298
+ "Context: The Leaning Tower of Pisa is located in Pisa, Italy. It was built in the 12th century. Question: Where is the Leaning Tower of Pisa?"
299
  ],
300
  # Example 3: Difficult Fictional (Conditions)
301
  [
302
  "Use only the context provided.",
303
+ "Context: The XJ-9000 smartphone features a 6-inch screen, 12 hours of battery life, and is water-resistant up to 2 meters for 30 minutes. Question: What are the water resistance specs of the XJ-9000?"
304
  ],
305
  # Example 4: Difficult Fictional (Extrinsic)
306
  [
307
  "Use only the context provided.",
308
+ "Context: Dr. Aris Thorne discovered the luminescent moss 'Glowleaf' in the caves of Mount Ebon. The moss emits a faint blue light when exposed to moisture. Question: Tell me about Dr. Thorne's discovery."
309
  ],
310
  # Example 5: Long Context with Distractors
311
  [
312
  "Use only the context provided.",
313
+ "Context: Project Chronos was initiated in 2042 by Apex Dynamics to explore the Mariana Trench using the 'Abyss-1' submersible. The team consisted of 12 marine biologists and 4 engineers. The primary objective was to locate the rare 'Lumina' coral. During the 3-week expedition, they discovered a new species of blind shrimp, but the Lumina coral was not found. A secondary mission, Project Helios, was planned for 2045 to explore the Arctic Ocean. The Abyss-1 submersible suffered minor thruster damage on day 14, forcing the team to rely on backup navigation. Question: Summarize the details and outcome of Project Chronos."
314
  ],
315
  # Example 6: Unanswerable Context with Distractor
316
  [
317
  "Answer strictly based on the provided context.",
318
+ "Context: The Orion V2 smartwatch features a titanium casing, a heart-rate monitor, and a 4-day battery life. It is available in Silver and Midnight Black. The previous model, Orion V1, included a sleep tracking feature that was highly praised by users. Question: Does the Orion V2 smartwatch have sleep tracking?"
319
  ]
320
  ],
321
  inputs=[system_prompt_input_gen, prompt_input_gen],