minemaster01 commited on
Commit
c783997
·
verified ·
1 Parent(s): 760a634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def update_other_language_visibility(selected_language):
31
  return gr.update(visible=(selected_language == "OTHER"))
32
  def process_submission(input_img, language, country, state, city, se_asia_relevance, culture_knowledge, native_caption, english_caption,code_mixed_caption,domain,email,other_language=None):
33
  submission_id = str(uuid.uuid4())
34
- timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
35
  image_path = None
36
  if input_img is not None:
37
  image_filename = f"{timestamp}.jpg"
@@ -61,7 +61,7 @@ def clear_inputs():
61
  return None, "OTHER", "", "None", None, "", "", None, None, "", "", "", ""
62
  setup_hf_dataset()
63
  with gr.Blocks(theme='1024m/1024m-1') as gradio_app:
64
- gr.Markdown("# South Asian Image Data Collection")
65
  gr.Markdown("Upload an image and answer questions about its cultural significance.")
66
  with gr.Row():
67
  with gr.Column(scale=1):
 
31
  return gr.update(visible=(selected_language == "OTHER"))
32
  def process_submission(input_img, language, country, state, city, se_asia_relevance, culture_knowledge, native_caption, english_caption,code_mixed_caption,domain,email,other_language=None):
33
  submission_id = str(uuid.uuid4())
34
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S_%f")
35
  image_path = None
36
  if input_img is not None:
37
  image_filename = f"{timestamp}.jpg"
 
61
  return None, "OTHER", "", "None", None, "", "", None, None, "", "", "", ""
62
  setup_hf_dataset()
63
  with gr.Blocks(theme='1024m/1024m-1') as gradio_app:
64
+ gr.Markdown("# Multilingual Image Captions")
65
  gr.Markdown("Upload an image and answer questions about its cultural significance.")
66
  with gr.Row():
67
  with gr.Column(scale=1):