visjia commited on
Commit
fed99ea
·
1 Parent(s): fe223f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -113,7 +113,17 @@ with gr.Blocks(css = """#col_container {width: 700px; margin-left: auto; margin-
113
  inputs = gr.Textbox(placeholder= "Hi there!", label= "请输入你的问题然后按 Run发送") #t
114
  state = gr.State([]) #s
115
  b1 = gr.Button()
 
116
 
 
 
 
 
 
 
 
 
 
117
  #inputs, top_p, temperature, top_k, repetition_penalty
118
  with gr.Accordion("Parameters", open=False):
119
  top_p = gr.Slider( minimum=-0, maximum=1.0, value=1.0, step=0.05, interactive=True, label="Top-p (nucleus sampling)",)
 
113
  inputs = gr.Textbox(placeholder= "Hi there!", label= "请输入你的问题然后按 Run发送") #t
114
  state = gr.State([]) #s
115
  b1 = gr.Button()
116
+ with gr.Blocks() as demo:
117
 
118
+ examples = [
119
+ ['200字介绍一下凯旋门:'],
120
+ ['网上购物有什么小窍门?'],
121
+ ['补全下述对三亚的介绍:\n三亚位于海南岛的最南端,是'],
122
+ ['将这句文言文翻译成英语:"逝者如斯夫,不舍昼夜。"'],
123
+ ['Question: What\'s the best winter resort city? User: A 10-year professional traveler. Answer: '],
124
+ ['How to help my child to make friends with his classmates? answer this question step by step:'],
125
+ ['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.'],
126
+ ]
127
  #inputs, top_p, temperature, top_k, repetition_penalty
128
  with gr.Accordion("Parameters", open=False):
129
  top_p = gr.Slider( minimum=-0, maximum=1.0, value=1.0, step=0.05, interactive=True, label="Top-p (nucleus sampling)",)