cahya commited on
Commit
1ef1a6a
1 Parent(s): a389ea6

update the default question

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -13,8 +13,8 @@ def get_answer(user_input, decoding_method, num_beams, top_k, top_p, temperature
13
  data = {
14
  "model_name": "bloomz-1b1-instruct",
15
  "text": user_input,
16
- "min_length": len(user_input) + 20,
17
- "max_length": 200,
18
  "decoding_method": decoding_method,
19
  "num_beams": num_beams,
20
  "top_k": top_k,
@@ -46,14 +46,14 @@ css = """
46
  with gr.Blocks(css=css) as demo:
47
  with gr.Row():
48
  gr.Markdown("""## Bloomz-1b1-Instruct
49
- We fine-tuned the BigScience model Bloomz-1b1 with instructions dataset of following languages:
50
- English, Indonesian, Malaysian, Vietnam, Hindi, Spanish, German, French, Russian, and Chinese.
51
  """)
52
  with gr.Row():
53
  with gr.Column():
54
  user_input = gr.inputs.Textbox(placeholder="",
55
  label="Ask me something",
56
- default="How old is the universe?")
57
  decoding_method = gr.inputs.Dropdown(["Beam Search", "Sampling"],
58
  default="Sampling", label="Decoding Method")
59
  num_beams = gr.inputs.Slider(label="Number of beams for beam search",
 
13
  data = {
14
  "model_name": "bloomz-1b1-instruct",
15
  "text": user_input,
16
+ "min_length": len(user_input) + 10,
17
+ "max_length": 100,
18
  "decoding_method": decoding_method,
19
  "num_beams": num_beams,
20
  "top_k": top_k,
 
46
  with gr.Blocks(css=css) as demo:
47
  with gr.Row():
48
  gr.Markdown("""## Bloomz-1b1-Instruct
49
+ We fine-tuned the BigScience model Bloomz-1b1 with cross-lingual instructions dataset. Some of the supported
50
+ languages are: English, Indonesian, Vietnam, Hindi, Spanish, French, and Chinese.
51
  """)
52
  with gr.Row():
53
  with gr.Column():
54
  user_input = gr.inputs.Textbox(placeholder="",
55
  label="Ask me something",
56
+ default="Will we ever cure cancer? Please answer in Chinese.")
57
  decoding_method = gr.inputs.Dropdown(["Beam Search", "Sampling"],
58
  default="Sampling", label="Decoding Method")
59
  num_beams = gr.inputs.Slider(label="Number of beams for beam search",