ysharma HF staff commited on
Commit
9273996
1 Parent(s): 19a9806

added desc and removed comments

Browse files
Files changed (1) hide show
  1. app.py +3 -22
app.py CHANGED
@@ -114,7 +114,6 @@ additional_inputs=[
114
  ]
115
 
116
 
117
-
118
  def vote(data: gr.LikeData):
119
  if data.liked:
120
  print("You upvoted this response: " + data.value)
@@ -124,10 +123,6 @@ def vote(data: gr.LikeData):
124
 
125
  chatbot = gr.Chatbot(avatar_images=('user.png', 'bot.png'),bubble_full_width = False)
126
 
127
- #chat = gr.ChatInterface(fn = random_response, chatbot = chatbot,
128
- # #chatbot = gr.Chatbot(avatar_images=('user.png', 'bot.png'),bubble_full_width = False),
129
- # textbox = gr.Textbox(placeholder="Ask me a yes or no question", container=False, scale=7),)
130
-
131
  chat_interface = gr.ChatInterface(
132
  generate,
133
  chatbot = chatbot,
@@ -135,15 +130,6 @@ chat_interface = gr.ChatInterface(
135
  additional_inputs=additional_inputs,
136
  )
137
 
138
- #with gr.Blocks() as demo:
139
- # chatbot.like(vote, None, None)
140
- # chat.render()
141
- #additional_inputs = chatbot.like(vote, None, None))
142
- #chatbot.like(vote, None, None)
143
-
144
- #demo.like(vote, None, None)
145
- #demo.launch()
146
-
147
 
148
  with gr.Blocks() as demo:
149
  with gr.Row():
@@ -151,8 +137,10 @@ with gr.Blocks() as demo:
151
  gr.Image("better_banner.jpeg", elem_id="banner-image", show_label=False)
152
  with gr.Column():
153
  gr.Markdown(
154
- """# Falcon-180B Demo
155
 
 
 
156
  **Chat with [Falcon-180B-Chat](https://huggingface.co/tiiuae/falcon-180b-chat), brainstorm ideas, discuss your holiday plans, and more!**
157
 
158
  ✨ 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.
@@ -170,11 +158,4 @@ with gr.Blocks() as demo:
170
  chatbot.like(vote, None, None)
171
  chat_interface.render()
172
 
173
- #gr.ChatInterface(
174
- # generate,
175
- # examples=EXAMPLES,
176
- # additional_inputs=additional_inputs,
177
- # avatar_images = ('user.png', 'bot.png')
178
- #)
179
-
180
  demo.queue(concurrency_count=100, api_open=False).launch(show_api=False)
 
114
  ]
115
 
116
 
 
117
  def vote(data: gr.LikeData):
118
  if data.liked:
119
  print("You upvoted this response: " + data.value)
 
123
 
124
  chatbot = gr.Chatbot(avatar_images=('user.png', 'bot.png'),bubble_full_width = False)
125
 
 
 
 
 
126
  chat_interface = gr.ChatInterface(
127
  generate,
128
  chatbot = chatbot,
 
130
  additional_inputs=additional_inputs,
131
  )
132
 
 
 
 
 
 
 
 
 
 
133
 
134
  with gr.Blocks() as demo:
135
  with gr.Row():
 
137
  gr.Image("better_banner.jpeg", elem_id="banner-image", show_label=False)
138
  with gr.Column():
139
  gr.Markdown(
140
+ """# Falcon-180B Demo
141
 
142
+ ## Gradio ChatInterface allows for dynamic Chat Bubble Sizing, User and Bot Avatars, and Like/Dislike buttons.
143
+
144
  **Chat with [Falcon-180B-Chat](https://huggingface.co/tiiuae/falcon-180b-chat), brainstorm ideas, discuss your holiday plans, and more!**
145
 
146
  ✨ 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.
 
158
  chatbot.like(vote, None, None)
159
  chat_interface.render()
160
 
 
 
 
 
 
 
 
161
  demo.queue(concurrency_count=100, api_open=False).launch(show_api=False)