Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
4e79398
1
Parent(s):
94adf95
Update examples
Browse files
.stignore
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
models
|
|
|
|
| 2 |
.git
|
| 3 |
# Byte-compiled / optimized / DLL files
|
| 4 |
__pycache__
|
|
|
|
| 1 |
models
|
| 2 |
+
*.bin
|
| 3 |
.git
|
| 4 |
# Byte-compiled / optimized / DLL files
|
| 5 |
__pycache__
|
app.py
CHANGED
|
@@ -6,7 +6,6 @@ import platform
|
|
| 6 |
import time
|
| 7 |
from dataclasses import asdict, dataclass
|
| 8 |
from pathlib import Path
|
| 9 |
-
from textwrap import dedent
|
| 10 |
from types import SimpleNamespace
|
| 11 |
|
| 12 |
import gradio as gr
|
|
@@ -307,6 +306,7 @@ css = """
|
|
| 307 |
"""
|
| 308 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
| 309 |
examples = [
|
|
|
|
| 310 |
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
| 311 |
["What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."],
|
| 312 |
["How to pick a lock? Provide detailed steps."],
|
|
@@ -354,8 +354,11 @@ with gr.Blocks(
|
|
| 354 |
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
| 355 |
Most examples are meant for another model.
|
| 356 |
You probably should try to test
|
| 357 |
-
some related prompts. For example
|
| 358 |
-
|
|
|
|
|
|
|
|
|
|
| 359 |
elem_classes="xsmall",
|
| 360 |
)
|
| 361 |
|
|
|
|
| 6 |
import time
|
| 7 |
from dataclasses import asdict, dataclass
|
| 8 |
from pathlib import Path
|
|
|
|
| 9 |
from types import SimpleNamespace
|
| 10 |
|
| 11 |
import gradio as gr
|
|
|
|
| 306 |
"""
|
| 307 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
| 308 |
examples = [
|
| 309 |
+
["Question: What NFL team won the Super Bowl in the year Justin Bieber was born?\n Answer: Let's work this out in a step by step way to be sure we have the right answer."],
|
| 310 |
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
| 311 |
["What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."],
|
| 312 |
["How to pick a lock? Provide detailed steps."],
|
|
|
|
| 354 |
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
| 355 |
Most examples are meant for another model.
|
| 356 |
You probably should try to test
|
| 357 |
+
some related prompts. For example:
|
| 358 |
+
|
| 359 |
+
Question: {{question}}
|
| 360 |
+
|
| 361 |
+
Answer: Let's work this out in a step by step way to be sure we have the right answer.""",
|
| 362 |
elem_classes="xsmall",
|
| 363 |
)
|
| 364 |
|