Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,12 @@ import os
|
|
| 6 |
|
| 7 |
title = "BLOOM"
|
| 8 |
description = """Gradio Demo for BLOOM. To use it, simply add your text, or click one of the examples to load them.
|
| 9 |
-
Tips: Do NOT talk to BLOOM as an entity, it's not a chatbot but a webpage/blog/article completion model. For the best results: MIMIC a few words of a webpage similar to the content you want to generate. Start a sentence as if YOU were writing a blog, webpage, math post, coding article and BLOOPM will generate a coherent follow-up.
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
- sampling: imaginative completions (may be not super accurate e.g. math/history)
|
| 13 |
- greedy: accurate completions (may be more boring or have repetitions)
|
| 14 |
"""
|
|
@@ -66,7 +69,7 @@ gr.Interface(
|
|
| 66 |
[
|
| 67 |
gr.inputs.Textbox(label="Input"),
|
| 68 |
gr.inputs.Slider(1, 64, default=32, step=1, label="Tokens to generate"),
|
| 69 |
-
gr.inputs.Radio(["Sample", "Greedy"]),
|
| 70 |
],
|
| 71 |
gr.outputs.Textbox(label="Output"),
|
| 72 |
examples=examples,
|
|
|
|
| 6 |
|
| 7 |
title = "BLOOM"
|
| 8 |
description = """Gradio Demo for BLOOM. To use it, simply add your text, or click one of the examples to load them.
|
|
|
|
| 9 |
|
| 10 |
+
Tips: Do NOT talk to BLOOM as an entity, it's not a chatbot but a webpage/blog/article completion model.
|
| 11 |
+
For the best results: MIMIC a few sentences of a webpage similar to the content you want to generate.
|
| 12 |
+
Start a paragraph as if YOU were writing a blog, webpage, math post, coding article and BLOOM will generate a coherent follow-up. Longer prompts usually give more interesting results.
|
| 13 |
+
|
| 14 |
+
Options:
|
| 15 |
- sampling: imaginative completions (may be not super accurate e.g. math/history)
|
| 16 |
- greedy: accurate completions (may be more boring or have repetitions)
|
| 17 |
"""
|
|
|
|
| 69 |
[
|
| 70 |
gr.inputs.Textbox(label="Input"),
|
| 71 |
gr.inputs.Slider(1, 64, default=32, step=1, label="Tokens to generate"),
|
| 72 |
+
gr.inputs.Radio(["Sample", "Greedy"], label="Sample or greedy"),
|
| 73 |
],
|
| 74 |
gr.outputs.Textbox(label="Output"),
|
| 75 |
examples=examples,
|