Spaces:
Running
Running
Minor updates, starting deployment
Browse files
app.py
CHANGED
@@ -348,7 +348,7 @@ with gr.Blocks(title=config.APP_TITLE, theme=gr.themes.Soft(primary_hue=gr.theme
|
|
348 |
with gr.Row():
|
349 |
for i in range(4):
|
350 |
with gr.Column():
|
351 |
-
img_display = gr.Image(label=f"Option {i+1}", type="pil", height=config.IMAGE_DISPLAY_SIZE[0],
|
352 |
output_image_displays.append(img_display)
|
353 |
vote_btn = gr.Button(f"Select Option {i+1}", elem_id=f"vote_btn_{i}", elem_classes=["custom-vote-button"])
|
354 |
vote_buttons.append(vote_btn)
|
|
|
348 |
with gr.Row():
|
349 |
for i in range(4):
|
350 |
with gr.Column():
|
351 |
+
img_display = gr.Image(label=f"Option {i+1}", type="pil", height=config.IMAGE_DISPLAY_SIZE[0], interactive=False)
|
352 |
output_image_displays.append(img_display)
|
353 |
vote_btn = gr.Button(f"Select Option {i+1}", elem_id=f"vote_btn_{i}", elem_classes=["custom-vote-button"])
|
354 |
vote_buttons.append(vote_btn)
|
config.py
CHANGED
@@ -43,7 +43,7 @@ SAMPLES_PER_DOMAIN = 3 # Number of samples to show from each domain per user ses
|
|
43 |
# --- Hugging Face Hub ---
|
44 |
HF_DATASET_REPO_ID = "matsant01/dit-editor-collected-preferences" # Replace with your actual repo ID
|
45 |
HF_TOKEN = None # Set this if your dataset is private, or use HF_HUB_TOKEN env var
|
46 |
-
PUSH_INTERVAL_HOURS = 0.
|
47 |
|
48 |
# --- UI Configuration ---
|
49 |
IMAGE_DISPLAY_SIZE = (300, 300) # (width, height) for displaying images
|
|
|
43 |
# --- Hugging Face Hub ---
|
44 |
HF_DATASET_REPO_ID = "matsant01/dit-editor-collected-preferences" # Replace with your actual repo ID
|
45 |
HF_TOKEN = None # Set this if your dataset is private, or use HF_HUB_TOKEN env var
|
46 |
+
PUSH_INTERVAL_HOURS = 0.25 # Interval in hours to push results to the Hub
|
47 |
|
48 |
# --- UI Configuration ---
|
49 |
IMAGE_DISPLAY_SIZE = (300, 300) # (width, height) for displaying images
|