rtaormina commited on
Commit
e62a740
·
verified ·
1 Parent(s): 096d617

Update accordions (default=False)

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -93,7 +93,16 @@ with gr.Blocks(css=css) as demo:
93
  txt_out_CogVLM = gr.Textbox(label="CogVLM", lines= n_lines, max_lines=n_lines)
94
  txt_out_LLaVa = gr.Textbox(label="LLaVa", lines= n_lines, max_lines=n_lines)
95
  with gr.Row():
96
- with gr.Accordion("Prompt used for GPT4-V, CogVLM and LLaVA"):
 
 
 
 
 
 
 
 
 
97
  gr.Markdown("""
98
  You are a virtual sewer technician with the capability to analyze images from CCTV cameras taken inside sewer pipes.
99
  Your task is to examine each image and provide a concise, yet accurate, summary for retrieval.
@@ -117,15 +126,7 @@ with gr.Blocks(css=css) as demo:
117
  6) You will always try to describe the image that you see.
118
  You must provide your output in JSON format with DESCRIPTION: <your description of the image>, PREDICTION: <your prediction, either DEFECTIVE or NON DEFECTIVE>"""
119
  )
120
- with gr.Accordion("Basic prompt used for GPT4-V"):
121
- gr.Markdown("""
122
- You are a virtual sewer technician with the capability to analyze images from CCTV cameras taken inside sewer pipes.
123
- Your task is to examine each image and provide a concise, yet accurate, summary for retrieval.
124
- After summarizing, you must classify the image as DEFECTIVE or NON DEFECTIVE.
125
- You will always try to describe the image that you see.
126
- You must provide your output in JSON format with DESCRIPTION: <your description of the image>, PREDICTION: <your prediction, either DEFECTIVE or NON DEFECTIVE>"""
127
- )
128
-
129
 
130
  prev_btn.click(fn=return_prev, inputs=index, outputs=[index, txt_item, img_out,
131
  txt_out_GPT4, txt_out_GPT4s,
 
93
  txt_out_CogVLM = gr.Textbox(label="CogVLM", lines= n_lines, max_lines=n_lines)
94
  txt_out_LLaVa = gr.Textbox(label="LLaVa", lines= n_lines, max_lines=n_lines)
95
  with gr.Row():
96
+ with gr.Accordion("Basic prompt used for GPT4-V", open=False):
97
+ gr.Markdown("""
98
+ You are a virtual sewer technician with the capability to analyze images from CCTV cameras taken inside sewer pipes.
99
+ Your task is to examine each image and provide a concise, yet accurate, summary for retrieval.
100
+ After summarizing, you must classify the image as DEFECTIVE or NON DEFECTIVE.
101
+ You will always try to describe the image that you see.
102
+ You must provide your output in JSON format with DESCRIPTION: <your description of the image>, PREDICTION: <your prediction, either DEFECTIVE or NON DEFECTIVE>"""
103
+ )
104
+ with gr.Row():
105
+ with gr.Accordion("Prompt used for GPT4-V, CogVLM and LLaVA", open=False):
106
  gr.Markdown("""
107
  You are a virtual sewer technician with the capability to analyze images from CCTV cameras taken inside sewer pipes.
108
  Your task is to examine each image and provide a concise, yet accurate, summary for retrieval.
 
126
  6) You will always try to describe the image that you see.
127
  You must provide your output in JSON format with DESCRIPTION: <your description of the image>, PREDICTION: <your prediction, either DEFECTIVE or NON DEFECTIVE>"""
128
  )
129
+
 
 
 
 
 
 
 
 
130
 
131
  prev_btn.click(fn=return_prev, inputs=index, outputs=[index, txt_item, img_out,
132
  txt_out_GPT4, txt_out_GPT4s,