Commit
Β·
ae49850
1
Parent(s):
28cf05b
add explanation
Browse files- app/app.py +20 -4
app/app.py
CHANGED
@@ -297,14 +297,30 @@ with gr.Blocks(css=css) as demo:
|
|
297 |
##############################
|
298 |
# Chatbot
|
299 |
##############################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
session_id = gr.Textbox(
|
301 |
interactive=False,
|
302 |
value=str(uuid.uuid4()),
|
303 |
visible=False,
|
304 |
)
|
305 |
|
306 |
-
language = gr.Dropdown(choices=LANGUAGES, label="Language", interactive=True)
|
307 |
-
|
308 |
chatbot = gr.Chatbot(
|
309 |
elem_id="chatbot",
|
310 |
editable="all",
|
@@ -327,10 +343,10 @@ with gr.Blocks(css=css) as demo:
|
|
327 |
submit_btn=True,
|
328 |
)
|
329 |
|
330 |
-
dataframe = gr.Dataframe(wrap=True)
|
331 |
|
332 |
submit_btn = gr.Button(
|
333 |
-
value="Submit conversation",
|
334 |
)
|
335 |
|
336 |
##############################
|
|
|
297 |
##############################
|
298 |
# Chatbot
|
299 |
##############################
|
300 |
+
gr.Markdown("""
|
301 |
+
# βΎοΈ FeeL - a real-time Feedback Loop for LMs
|
302 |
+
""")
|
303 |
+
|
304 |
+
with gr.Accordion("Explanation") as explanation:
|
305 |
+
gr.Markdown("""
|
306 |
+
FeeL is a collaboration between Hugging Face and MIT. It is a community-driven project to provide a real-time feedback loop for VLMs, where your feedback is continuously used to train the model.
|
307 |
+
|
308 |
+
Start by selecting your language, chat with the model with text and images and provide feedback in different ways.
|
309 |
+
|
310 |
+
- βοΈ Edit a message
|
311 |
+
- π/π Like or dislike a message
|
312 |
+
- π Regenerate a message
|
313 |
+
|
314 |
+
Some feedback is automatically submitted allowing you to continue chatting, but you can also submit and reset the conversation by clicking "πΎ Submit conversation" (under the chat) or trash the conversation by clicking "ποΈ" (upper right corner).
|
315 |
+
""")
|
316 |
+
language = gr.Dropdown(choices=LANGUAGES, label="Language", interactive=True)
|
317 |
+
|
318 |
session_id = gr.Textbox(
|
319 |
interactive=False,
|
320 |
value=str(uuid.uuid4()),
|
321 |
visible=False,
|
322 |
)
|
323 |
|
|
|
|
|
324 |
chatbot = gr.Chatbot(
|
325 |
elem_id="chatbot",
|
326 |
editable="all",
|
|
|
343 |
submit_btn=True,
|
344 |
)
|
345 |
|
346 |
+
dataframe = gr.Dataframe(wrap=True, label="Collected feedback")
|
347 |
|
348 |
submit_btn = gr.Button(
|
349 |
+
value="πΎ Submit conversation",
|
350 |
)
|
351 |
|
352 |
##############################
|