hsienchen commited on
Commit
11e0f9b
1 Parent(s): 89a716b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -53,26 +53,26 @@ def sentence_builder(animal, place):
53
 
54
  # gradio block
55
 
56
- with gr.Blocks(theme='freddyaboulton/dracula_revamped') as app1:
57
- title ="-COT-"
58
  with gr.Row():
59
  image_box = gr.Image(type="filepath")
60
 
61
- chatbot = gr.Chatbot(
62
- scale = 2,
63
- height=750
64
- )
65
  text_box = gr.Dropdown(
66
- ["what is in the image", "provide alternative title for the image", "how many birds can be seen in the picture?"], label="Animal", info="Will add more animals later!"
 
 
 
67
  )
68
 
69
  btn = gr.Button("Submit")
70
  clicked = btn.click(query_message,
71
- [chatbot,text_box,image_box],
72
- chatbot
73
  ).then(llm_response,
74
- [chatbot,text_box,image_box],
75
- chatbot
76
  )
77
  gr.Markdown("""
78
  # Multimodal Chain-of-Thought Reasoning in Language Models
 
53
 
54
  # gradio block
55
 
56
+ with gr.Blocks(theme='snehilsanyal/scikit-learn') as app1:
57
+ title = gr.Markdown("## COT ##")
58
  with gr.Row():
59
  image_box = gr.Image(type="filepath")
60
 
61
+ outputbox = gr.Textbox(label="Output")
 
 
 
62
  text_box = gr.Dropdown(
63
+ ["what is in the image",
64
+ "provide alternative title for the image",
65
+ "how many birds can be seen in the picture?"],
66
+ label="Prompts", info="Will add more animals later!"
67
  )
68
 
69
  btn = gr.Button("Submit")
70
  clicked = btn.click(query_message,
71
+ [outputbox,text_box,image_box],
72
+ outputbox
73
  ).then(llm_response,
74
+ [outputbox,text_box,image_box],
75
+ outputbox
76
  )
77
  gr.Markdown("""
78
  # Multimodal Chain-of-Thought Reasoning in Language Models