dnaveenr commited on
Commit
3501cba
1 Parent(s): ba6c139

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -33,16 +33,19 @@ def main():
33
  # Initialize with empty strings
34
  generated_caption = ""
35
  reference_caption = ""
 
 
 
36
 
37
  if example_choice:
38
  generated_caption = sample_examples[example_choice]["generated"]
39
  reference_caption = sample_examples[example_choice]["reference"]
40
-
41
- # Description
42
- st.write("You can either input single caption or multiple captions separated by new line.")
43
  # Input text boxes
44
- generated_caption_input = st.text_area("Generated Caption:", value=generated_caption)
45
- reference_caption_input = st.text_area("Reference Caption:", value=reference_caption)
46
 
47
 
48
  # Compute score button
 
33
  # Initialize with empty strings
34
  generated_caption = ""
35
  reference_caption = ""
36
+
37
+ # Description
38
+ st.write("You can either input single caption or multiple captions separated by new line.")
39
 
40
  if example_choice:
41
  generated_caption = sample_examples[example_choice]["generated"]
42
  reference_caption = sample_examples[example_choice]["reference"]
43
+ generated_caption_input = st.text_area("Generated Caption:", value=generated_caption)
44
+ reference_caption_input = st.text_area("Reference Caption:", value=reference_caption)
45
+ else:
46
  # Input text boxes
47
+ generated_caption_input = st.text_area("Generated Caption:")
48
+ reference_caption_input = st.text_area("Reference Caption:")
49
 
50
 
51
  # Compute score button