Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
•
fdd05ad
1
Parent(s):
f073be5
Update examples
Browse files- .gitignore +0 -1
- .ruff.toml +0 -21
- app.py +2 -0
.gitignore
CHANGED
@@ -1 +0,0 @@
|
|
1 |
-
call-activate.bat
|
|
|
|
.ruff.toml
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
# Assume Python 3.10.
|
2 |
-
target-version = "py310"
|
3 |
-
# Decrease the maximum line length to 79 characters.
|
4 |
-
line-length = 300
|
5 |
-
|
6 |
-
# pyflakes, pycodestyle, isort
|
7 |
-
# flake8 YTT, pydocstyle D, pylint PLC
|
8 |
-
select = ["F", "E", "W", "I001", "YTT", "D", "PLC"]
|
9 |
-
# select = ["ALL"]
|
10 |
-
|
11 |
-
# E501 Line too long
|
12 |
-
# D102 Missing docstring in public method
|
13 |
-
# D100 Missing docstring in public module
|
14 |
-
# E501 Line too long
|
15 |
-
# D103 Missing docstring in public function
|
16 |
-
# D101 Missing docstring in public class
|
17 |
-
# `multi-line-summary-first-line` (D212)
|
18 |
-
# `one-blank-line-before-class` (D203)
|
19 |
-
extend-ignore = ["E501", "D100", "D101", "D102", "D103", "D212", "D203"]
|
20 |
-
|
21 |
-
exclude = [".venv", "ultrachat-13B-test.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -321,6 +321,8 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
|
|
321 |
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. """
|
322 |
examples = gr.Examples(
|
323 |
examples=[
|
|
|
|
|
324 |
["Explain the plot of Cinderella in a sentence."],
|
325 |
[
|
326 |
"How long does it take to become proficient in French, and what are the best methods for retaining information?"
|
|
|
321 |
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. """
|
322 |
examples = gr.Examples(
|
323 |
examples=[
|
324 |
+
["What NFL team won the Super Bowl in the year Justin Bieber was born? "],
|
325 |
+
["What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."],
|
326 |
["Explain the plot of Cinderella in a sentence."],
|
327 |
[
|
328 |
"How long does it take to become proficient in French, and what are the best methods for retaining information?"
|