Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,12 +112,13 @@ def generate(instruction):
|
|
112 |
|
113 |
with gr.Blocks(analytics_enabled=False) as demo:
|
114 |
with gr.Column():
|
115 |
-
gr.Markdown("""# Dolly-Expert-Lite
|
116 |
Dolly-Expert-Lite is a bot for domain specific question
|
117 |
answering. Currently powered by the new Dolly-v2-3b open
|
118 |
source model. It's expert systems in the era of LLMs!
|
119 |
|
120 |
-
## Building Code Expert
|
|
|
121 |
In this example deployment, Dolly-Expert-Lite retrieves
|
122 |
information via a vector database made using the
|
123 |
[Ontario (Canada) Building Code](https://www.buildingcode.online)
|
@@ -126,7 +127,6 @@ with gr.Blocks(analytics_enabled=False) as demo:
|
|
126 |
[model card](https://huggingface.co/databricks/dolly-v2-12b)
|
127 |
|
128 |
### Type in the box below and click to ask the expert!
|
129 |
-
|
130 |
"""
|
131 |
)
|
132 |
|
@@ -152,5 +152,5 @@ with gr.Blocks(analytics_enabled=False) as demo:
|
|
152 |
clear.click(lambda: None, [], [output])
|
153 |
instruction.submit(generate, inputs=[instruction], outputs=[output])
|
154 |
|
155 |
-
demo.queue(concurrency_count=16).launch(
|
156 |
demo.launch()
|
|
|
112 |
|
113 |
with gr.Blocks(analytics_enabled=False) as demo:
|
114 |
with gr.Column():
|
115 |
+
gr.Markdown("""# π Dolly-Expert-Lite
|
116 |
Dolly-Expert-Lite is a bot for domain specific question
|
117 |
answering. Currently powered by the new Dolly-v2-3b open
|
118 |
source model. It's expert systems in the era of LLMs!
|
119 |
|
120 |
+
## ποΈ Building Code Expert
|
121 |
+
|
122 |
In this example deployment, Dolly-Expert-Lite retrieves
|
123 |
information via a vector database made using the
|
124 |
[Ontario (Canada) Building Code](https://www.buildingcode.online)
|
|
|
127 |
[model card](https://huggingface.co/databricks/dolly-v2-12b)
|
128 |
|
129 |
### Type in the box below and click to ask the expert!
|
|
|
130 |
"""
|
131 |
)
|
132 |
|
|
|
152 |
clear.click(lambda: None, [], [output])
|
153 |
instruction.submit(generate, inputs=[instruction], outputs=[output])
|
154 |
|
155 |
+
demo.queue(concurrency_count=16).launch()
|
156 |
demo.launch()
|