davidberenstein1957 HF staff commited on
Commit
7ed0603
·
1 Parent(s): ae49850

add info on dataset

Browse files
Files changed (2) hide show
  1. app/app.py +3 -3
  2. app/feedback.py +2 -2
app/app.py CHANGED
@@ -8,7 +8,7 @@ from pathlib import Path
8
  from typing import Optional
9
 
10
  import gradio as gr
11
- from feedback import save_feedback
12
  from gradio.components.chatbot import Option
13
  from huggingface_hub import InferenceClient
14
  from pandas import DataFrame
@@ -302,8 +302,8 @@ with gr.Blocks(css=css) as demo:
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
 
 
8
  from typing import Optional
9
 
10
  import gradio as gr
11
+ from feedback import save_feedback, scheduler
12
  from gradio.components.chatbot import Option
13
  from huggingface_hub import InferenceClient
14
  from pandas import DataFrame
 
302
  """)
303
 
304
  with gr.Accordion("Explanation") as explanation:
305
+ gr.Markdown(f"""
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. The [dataset](https://huggingface.co/datasets/{scheduler.repo_id}) and [code](https://github.com/huggingface/feel) are public.
307
 
308
  Start by selecting your language, chat with the model with text and images and provide feedback in different ways.
309
 
app/feedback.py CHANGED
@@ -6,11 +6,11 @@ from huggingface_hub import CommitScheduler
6
 
7
  APP_INSTANCE_ID = str(uuid.uuid4())
8
 
9
- feedback_file = Path("user_feedback/") / f"data_{APP_INSTANCE_ID}.json"
10
  feedback_folder = feedback_file.parent
11
 
12
  scheduler = CommitScheduler(
13
- repo_id="ohp-test-conversation",
14
  repo_type="dataset",
15
  folder_path=feedback_folder,
16
  path_in_repo="data",
 
6
 
7
  APP_INSTANCE_ID = str(uuid.uuid4())
8
 
9
+ feedback_file = Path("user_feedback/") / f"train-data_{APP_INSTANCE_ID}.json"
10
  feedback_folder = feedback_file.parent
11
 
12
  scheduler = CommitScheduler(
13
+ repo_id="feel-feedback",
14
  repo_type="dataset",
15
  folder_path=feedback_folder,
16
  path_in_repo="data",