Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,19 @@ examples = [
|
|
| 34 |
]
|
| 35 |
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
demo = gr.Interface(
|
|
@@ -45,7 +58,8 @@ demo = gr.Interface(
|
|
| 45 |
outputs=gr.Textbox(label="Generated Output", lines=10),
|
| 46 |
title="Genstruct-7B Text Generation Demo",
|
| 47 |
description="Enter a title and content to generate text using the Genstruct-7B model.",
|
| 48 |
-
examples=examples
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
if __name__ == "__main__":
|
|
|
|
| 34 |
]
|
| 35 |
|
| 36 |
|
| 37 |
+
description = """
|
| 38 |
+
<h2>Welcome to the Genstruct-7B Text Generation Demo!</h2>
|
| 39 |
+
|
| 40 |
+
<p>This demo showcases the Genstruct-7B model, an innovative instruction-generation AI designed to create valid instructions from raw text. Here's what you can do:</p>
|
| 41 |
+
|
| 42 |
+
<ul>
|
| 43 |
+
<li>Input a title and content in the style of a Wikipedia article or informative blog post.</li>
|
| 44 |
+
<li>Watch as the model generates complex questions and detailed reasoning based on your input.</li>
|
| 45 |
+
<li>Explore how Genstruct-7B can be used to create partially synthetic instruction datasets from any raw text corpus.</li>
|
| 46 |
+
</ul>
|
| 47 |
+
|
| 48 |
+
<p>Genstruct-7B stands out by grounding its generations in user-provided context, allowing for the creation of questions involving complex scenarios that require step-by-step reasoning. Give it a try and see how it can enhance your text generation tasks!</p>
|
| 49 |
+
"""
|
| 50 |
|
| 51 |
|
| 52 |
demo = gr.Interface(
|
|
|
|
| 58 |
outputs=gr.Textbox(label="Generated Output", lines=10),
|
| 59 |
title="Genstruct-7B Text Generation Demo",
|
| 60 |
description="Enter a title and content to generate text using the Genstruct-7B model.",
|
| 61 |
+
examples=examples,
|
| 62 |
+
description=description,
|
| 63 |
)
|
| 64 |
|
| 65 |
if __name__ == "__main__":
|