Spaces:
Runtime error
Runtime error
update the default question
Browse files
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) +
|
17 |
-
"max_length":
|
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
|
50 |
-
English, Indonesian,
|
51 |
""")
|
52 |
with gr.Row():
|
53 |
with gr.Column():
|
54 |
user_input = gr.inputs.Textbox(placeholder="",
|
55 |
label="Ask me something",
|
56 |
-
default="
|
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",
|