Spaces:
Running
Running
kanhatakeyama
commited on
Commit
•
1b1926a
1
Parent(s):
41b93dc
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,7 @@ def respond(
|
|
49 |
# response += token
|
50 |
if token is not None:
|
51 |
response += (token)
|
|
|
52 |
yield response
|
53 |
|
54 |
|
@@ -89,7 +90,7 @@ def run():
|
|
89 |
label="Parameters", open=False, render=False
|
90 |
),
|
91 |
additional_inputs=[
|
92 |
-
gr.Textbox(value="以下は、タスクを説明する指示です。要求を適切に満たす応答を書きなさい。", label="System message"),
|
93 |
gr.Slider(
|
94 |
minimum=1,
|
95 |
maximum=4096,
|
|
|
49 |
# response += token
|
50 |
if token is not None:
|
51 |
response += (token)
|
52 |
+
response=response.split("### 指示:")[0] #出力崩壊の応急処置
|
53 |
yield response
|
54 |
|
55 |
|
|
|
90 |
label="Parameters", open=False, render=False
|
91 |
),
|
92 |
additional_inputs=[
|
93 |
+
gr.Textbox(value="以下は、タスクを説明する指示です。要求を適切に満たす応答を書きなさい。", label="System message(試験用: 変えると出力が壊れる可能性)"),
|
94 |
gr.Slider(
|
95 |
minimum=1,
|
96 |
maximum=4096,
|