Spaces:
Running
Running
minor
Browse files
app.py
CHANGED
|
@@ -391,18 +391,18 @@ def create_demo(model_manager: ModelManager):
|
|
| 391 |
|
| 392 |
# Preset example questions
|
| 393 |
EXAMPLE_QUESTIONS = {
|
| 394 |
-
"example1": """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 395 |
|
| 396 |
A. Why the act of destroying nature might be immoral.
|
| 397 |
B. Why people who destroy the environment might be bad people.
|
| 398 |
C. How the decision to preserve the environment benefits the environment.
|
| 399 |
-
D. Whether plants have interests."""
|
| 400 |
-
"example2": """Why is the Mars Exploration Rover Spirit currently tilted towards the north?
|
| 401 |
-
|
| 402 |
-
A. Because itโs climbing up a big hill.
|
| 403 |
-
B. Because itโs in the southern hemisphere where it is winter now.
|
| 404 |
-
C. Because itโs in the northern hemisphere where it is winter now.
|
| 405 |
-
D. Because one of its wheels broke."""
|
| 406 |
}
|
| 407 |
|
| 408 |
def respond(user_input: str):
|
|
@@ -468,8 +468,8 @@ D. Because one of its wheels broke."""
|
|
| 468 |
# Preset question examples
|
| 469 |
gr.Markdown("Example Questions:")
|
| 470 |
with gr.Row():
|
| 471 |
-
example1_btn = gr.Button("๐ Example 1:
|
| 472 |
-
example2_btn = gr.Button("๐ Example 2:
|
| 473 |
|
| 474 |
|
| 475 |
with gr.Row():
|
|
|
|
| 391 |
|
| 392 |
# Preset example questions
|
| 393 |
EXAMPLE_QUESTIONS = {
|
| 394 |
+
"example1": """Why is the Mars Exploration Rover Spirit currently tilted towards the north?
|
| 395 |
+
|
| 396 |
+
A. Because it's climbing up a big hill.
|
| 397 |
+
B. Because it's in the southern hemisphere where it is winter now.
|
| 398 |
+
C. Because it's in the northern hemisphere where it is winter now.
|
| 399 |
+
D. Because one of its wheels broke.""",
|
| 400 |
+
"example2": """Instead of asking why the act of destroying the environment might be immoral, Hill wants to ask ...
|
| 401 |
|
| 402 |
A. Why the act of destroying nature might be immoral.
|
| 403 |
B. Why people who destroy the environment might be bad people.
|
| 404 |
C. How the decision to preserve the environment benefits the environment.
|
| 405 |
+
D. Whether plants have interests."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
}
|
| 407 |
|
| 408 |
def respond(user_input: str):
|
|
|
|
| 468 |
# Preset question examples
|
| 469 |
gr.Markdown("Example Questions:")
|
| 470 |
with gr.Row():
|
| 471 |
+
example1_btn = gr.Button("๐ Example 1: Astronomy", size="sm")
|
| 472 |
+
example2_btn = gr.Button("๐ Example 2: Philosophy", size="sm")
|
| 473 |
|
| 474 |
|
| 475 |
with gr.Row():
|