Spaces:
Running
on
Zero
Running
on
Zero
aixsatoshi
commited on
Commit
โข
82b85f5
1
Parent(s):
651de2e
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ split_name = "train" if "train" in dataset else "test" # ใใใฉใซใใtrai
|
|
61 |
# ้ฉๅใชในใใชใใใใ10ๅใฎไพใๅๅพ
|
62 |
examples_list = list(dataset[split_name]) # ในใใชใใใใชในใใซๅคๆ
|
63 |
examples = random.sample(examples_list, 10) # ใชในใใใใฉใณใใ ใซ10ๅ้ธๆ
|
64 |
-
example_inputs = [example['input'] for example in examples]
|
65 |
|
66 |
@spaces.GPU
|
67 |
def stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):
|
@@ -153,7 +153,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
153 |
render=False,
|
154 |
),
|
155 |
],
|
156 |
-
examples=example_inputs,
|
157 |
cache_examples=False,
|
158 |
)
|
159 |
|
|
|
61 |
# ้ฉๅใชในใใชใใใใ10ๅใฎไพใๅๅพ
|
62 |
examples_list = list(dataset[split_name]) # ในใใชใใใใชในใใซๅคๆ
|
63 |
examples = random.sample(examples_list, 10) # ใชในใใใใฉใณใใ ใซ10ๅ้ธๆ
|
64 |
+
example_inputs = [[example['input']] for example in examples] # ใในใใใใใชในใใซๅคๆ
|
65 |
|
66 |
@spaces.GPU
|
67 |
def stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):
|
|
|
153 |
render=False,
|
154 |
),
|
155 |
],
|
156 |
+
examples=example_inputs, # ใในใใใใใชในใใๆธกใ
|
157 |
cache_examples=False,
|
158 |
)
|
159 |
|