Spaces:
Runtime error
Runtime error
Commit
Β·
ed9ce62
1
Parent(s):
a3dc954
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,9 +24,7 @@ def generate(instruction):
|
|
| 24 |
result = ""
|
| 25 |
for word in response.split(" "):
|
| 26 |
result += word + " "
|
| 27 |
-
|
| 28 |
-
# yield result
|
| 29 |
-
return response
|
| 30 |
|
| 31 |
examples = [
|
| 32 |
"Instead of making a peanut butter and jelly sandwich, what else could I combine peanut butter with in a sandwich? Give five ideas",
|
|
@@ -46,7 +44,7 @@ css = ".generating {visibility: hidden}"
|
|
| 46 |
with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
| 47 |
with gr.Column():
|
| 48 |
gr.Markdown(
|
| 49 |
-
"""
|
| 50 |
Dolly 2.0 is a 12B parameter language model based on the EleutherAI pythia model family and fine-tuned exclusively on a new, high-quality human generated instruction following dataset, crowdsourced among Databricks employees. For more details, please refer to the [model card](https://huggingface.co/databricks/dolly-v2-12b)
|
| 51 |
|
| 52 |
Type in the box below and click the button to generate answers to your most pressing questions!
|
|
|
|
| 24 |
result = ""
|
| 25 |
for word in response.split(" "):
|
| 26 |
result += word + " "
|
| 27 |
+
yield result
|
|
|
|
|
|
|
| 28 |
|
| 29 |
examples = [
|
| 30 |
"Instead of making a peanut butter and jelly sandwich, what else could I combine peanut butter with in a sandwich? Give five ideas",
|
|
|
|
| 44 |
with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
| 45 |
with gr.Column():
|
| 46 |
gr.Markdown(
|
| 47 |
+
""" ## Dolly 2.0
|
| 48 |
Dolly 2.0 is a 12B parameter language model based on the EleutherAI pythia model family and fine-tuned exclusively on a new, high-quality human generated instruction following dataset, crowdsourced among Databricks employees. For more details, please refer to the [model card](https://huggingface.co/databricks/dolly-v2-12b)
|
| 49 |
|
| 50 |
Type in the box below and click the button to generate answers to your most pressing questions!
|