Spaces:
Runtime error
Runtime error
PRANJAL KAR
commited on
Commit
·
1408800
1
Parent(s):
713065f
chalo
Browse files
app.py
CHANGED
@@ -128,39 +128,29 @@ additional_inputs=[
|
|
128 |
)
|
129 |
]
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
with gr.Blocks() as demo:
|
133 |
with gr.Row():
|
134 |
-
with gr.Column(scale=
|
135 |
gr.Image("better_banner.jpeg", elem_id="banner-image", show_label=False)
|
136 |
-
with gr.Column():
|
137 |
gr.Markdown(
|
138 |
"""# Falcon-180B Demo
|
139 |
-
|
140 |
-
**Chat with [Falcon-180B-Chat](https://huggingface.co/tiiuae/falcon-180b-chat), brainstorm ideas, discuss your holiday plans, and more!**
|
141 |
-
|
142 |
-
✨ This demo is powered by [Falcon-180B](https://huggingface.co/tiiuae/falcon-180B) and finetuned on a mixture of [Ultrachat](https://huggingface.co/datasets/stingning/ultrachat), [Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) and [Airoboros](https://huggingface.co/datasets/jondurbin/airoboros-2.1). [Falcon-180B](https://huggingface.co/tiiuae/falcon-180b) is a state-of-the-art large language model built by the [Technology Innovation Institute](https://www.tii.ae) in Abu Dhabi. It is trained on 3.5 trillion tokens (including [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb)) and available under the [Falcon-180B TII License](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/LICENSE.txt). It currently holds the 🥇 1st place on the [🤗 Open LLM leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) for a pretrained model.
|
143 |
-
|
144 |
-
🧪 This is only a **first experimental preview**: we intend to provide increasingly capable versions of Falcon in the future, based on improved datasets and RLHF/RLAIF.
|
145 |
-
|
146 |
-
👀 **Learn more about Falcon LLM:** [falconllm.tii.ae](https://falconllm.tii.ae/)
|
147 |
-
|
148 |
-
➡️️ **Intended Use**: this demo is intended to showcase an early finetuning of [Falcon-180B](https://huggingface.co/tiiuae/falcon-180b), to illustrate the impact (and limitations) of finetuning on a dataset of conversations and instructions. We encourage the community to further build upon the base model, and to create even better instruct/chat versions!
|
149 |
-
|
150 |
-
⚠️ **Limitations**: the model can and will produce factually incorrect information, hallucinating facts and actions. As it has not undergone any advanced tuning/alignment, it can produce problematic outputs, especially if prompted to do so. Finally, this demo is limited to a session length of about 1,000 words.
|
151 |
"""
|
152 |
)
|
153 |
-
iface_1 = gr.Interface(
|
154 |
-
fn=generate_headlines,
|
155 |
-
inputs=gr.inputs.Textbox(placeholder="Enter the topic"),
|
156 |
-
outputs="text",
|
157 |
-
examples=EXAMPLES
|
158 |
-
)
|
159 |
|
160 |
-
main_i = gr.ChatInterface(
|
161 |
-
generate,
|
162 |
-
examples=EXAMPLES,
|
163 |
-
additional_inputs=additional_inputs,
|
164 |
-
)
|
165 |
demo = gr.TabbedInterface([iface_1, main_i], ["Get headlines", "Chatbot Demo"])
|
166 |
demo.queue(concurrency_count=100, api_open=False).launch(show_api=False)
|
|
|
128 |
)
|
129 |
]
|
130 |
|
131 |
+
iface_1 = gr.Interface(
|
132 |
+
fn=generate_headlines,
|
133 |
+
inputs=gr.components.Textbox(placeholder="Enter the topic"),
|
134 |
+
outputs="text",
|
135 |
+
examples=EXAMPLES
|
136 |
+
)
|
137 |
+
|
138 |
+
main_i = gr.ChatInterface(
|
139 |
+
generate,
|
140 |
+
examples=EXAMPLES,
|
141 |
+
additional_inputs=additional_inputs,
|
142 |
+
)
|
143 |
|
144 |
with gr.Blocks() as demo:
|
145 |
with gr.Row():
|
146 |
+
with gr.Column(scale=4): # Adjusted the 'scale' parameter to be an integer
|
147 |
gr.Image("better_banner.jpeg", elem_id="banner-image", show_label=False)
|
148 |
+
with gr.Column(scale=6):
|
149 |
gr.Markdown(
|
150 |
"""# Falcon-180B Demo
|
151 |
+
... [rest of the markdown content] ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
"""
|
153 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
|
|
|
|
|
|
|
|
|
|
155 |
demo = gr.TabbedInterface([iface_1, main_i], ["Get headlines", "Chatbot Demo"])
|
156 |
demo.queue(concurrency_count=100, api_open=False).launch(show_api=False)
|