Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,17 +115,6 @@ with gr.Blocks(css = """#col_container {width: 700px; margin-left: auto; margin-
|
|
| 115 |
b1 = gr.Button()
|
| 116 |
|
| 117 |
|
| 118 |
-
with gr.Blocks() as demo:
|
| 119 |
-
|
| 120 |
-
examples = [
|
| 121 |
-
['200字介绍一下凯旋门:'],
|
| 122 |
-
['网上购物有什么小窍门?'],
|
| 123 |
-
['补全下述对三亚的介绍:\n三亚位于海南岛的最南端,是'],
|
| 124 |
-
['将这句文言文翻译成英语:"逝者如斯夫,不舍昼夜。"'],
|
| 125 |
-
['Question: What\'s the best winter resort city? User: A 10-year professional traveler. Answer: '],
|
| 126 |
-
['How to help my child to make friends with his classmates? answer this question step by step:'],
|
| 127 |
-
['polish the following statement for a paper: In this section, we perform case study to give a more intuitive demonstration of our proposed strategies and corresponding explanation.'],
|
| 128 |
-
]
|
| 129 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
| 130 |
with gr.Accordion("Parameters", open=False):
|
| 131 |
top_p = gr.Slider( minimum=-0, maximum=1.0, value=1.0, step=0.05, interactive=True, label="Top-p (nucleus sampling)",)
|
|
@@ -141,3 +130,16 @@ with gr.Blocks(css = """#col_container {width: 700px; margin-left: auto; margin-
|
|
| 141 |
|
| 142 |
#gr.Markdown(description)
|
| 143 |
demo.queue().launch(debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
b1 = gr.Button()
|
| 116 |
|
| 117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
| 119 |
with gr.Accordion("Parameters", open=False):
|
| 120 |
top_p = gr.Slider( minimum=-0, maximum=1.0, value=1.0, step=0.05, interactive=True, label="Top-p (nucleus sampling)",)
|
|
|
|
| 130 |
|
| 131 |
#gr.Markdown(description)
|
| 132 |
demo.queue().launch(debug=True)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
with gr.Blocks() as demo:
|
| 136 |
+
|
| 137 |
+
examples = [
|
| 138 |
+
['200字介绍一下凯旋门:'],
|
| 139 |
+
['网上购物有什么小窍门?'],
|
| 140 |
+
['补全下述对三亚的介绍:\n三亚位于海南岛的最南端,是'],
|
| 141 |
+
['将这句文言文翻译成英语:"逝者如斯夫,不舍昼夜。"'],
|
| 142 |
+
['Question: What\'s the best winter resort city? User: A 10-year professional traveler. Answer: '],
|
| 143 |
+
['How to help my child to make friends with his classmates? answer this question step by step:'],
|
| 144 |
+
['polish the following statement for a paper: In this section, we perform case study to give a more intuitive demonstration of our proposed strategies and corresponding explanation.'],
|
| 145 |
+
]
|