cooelf commited on
Commit
d20e24c
1 Parent(s): 9ff5e9b

update emoji

Browse files
Files changed (2) hide show
  1. README.md +3 -4
  2. app.py +3 -0
README.md CHANGED
@@ -1,10 +1,9 @@
1
  ---
2
  title: MM-CoT
3
- emoji: 😻
4
- colorFrom: gray
5
- colorTo: red
6
  sdk: gradio
7
- sdk_version: 3.19.1
8
  app_file: app.py
9
  pinned: false
10
  license: openrail
 
1
  ---
2
  title: MM-CoT
3
+ emoji: 🏖️
4
+ colorFrom: indigo
5
+ colorTo: gray
6
  sdk: gradio
 
7
  app_file: app.py
8
  pinned: false
9
  license: openrail
app.py CHANGED
@@ -47,8 +47,11 @@ def inference_chat(input_image,input_text):
47
  do_sample=False
48
  )
49
  rationale = tokenizer.batch_decode(rationale, skip_special_tokens=True)[0]
 
50
 
51
  input_text = input_text + "\n" + rationale +"\nAnswer:"
 
 
52
  source = tokenizer.batch_encode_plus(
53
  [input_text],
54
  max_length=512,
 
47
  do_sample=False
48
  )
49
  rationale = tokenizer.batch_decode(rationale, skip_special_tokens=True)[0]
50
+ print(rationale)
51
 
52
  input_text = input_text + "\n" + rationale +"\nAnswer:"
53
+ print(input_text)
54
+
55
  source = tokenizer.batch_encode_plus(
56
  [input_text],
57
  max_length=512,