Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,6 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
|
|
50 |
|
51 |
answer = answer.replace('[</s>]', '')
|
52 |
|
53 |
-
print(answer)
|
54 |
-
|
55 |
return answer
|
56 |
|
57 |
|
@@ -119,7 +117,12 @@ if __name__ == "__main__":
|
|
119 |
gen.click(fn=predict, inputs=inputs, outputs=outputs)
|
120 |
clr.click(fn=lambda value: gr.update(value=""), inputs=clr, outputs=model_input)
|
121 |
|
122 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
123 |
gr_examples = gr.Examples(examples=examples, inputs=model_input)
|
124 |
|
125 |
demo.launch()
|
|
|
50 |
|
51 |
answer = answer.replace('[</s>]', '')
|
52 |
|
|
|
|
|
53 |
return answer
|
54 |
|
55 |
|
|
|
117 |
gen.click(fn=predict, inputs=inputs, outputs=outputs)
|
118 |
clr.click(fn=lambda value: gr.update(value=""), inputs=clr, outputs=model_input)
|
119 |
|
120 |
+
gr.Markdown(
|
121 |
+
"""
|
122 |
+
Try this!(Disclaimer inspired from [BLOOM](https://huggingface.co/spaces/bigscience/bloom-book))
|
123 |
+
|
124 |
+
As with all language models, it is hard to predict how GLM-130B will respond to particular prompts; harmful or otherwise offensive content may occur without warning. We prohibit users from knowingly generating or allowing others to knowingly generate harmful content, including Hateful, Harassment, Violence, Adult, Political, Deception, etc.
|
125 |
+
""")
|
126 |
gr_examples = gr.Examples(examples=examples, inputs=model_input)
|
127 |
|
128 |
demo.launch()
|