Dongxu Li
commited on
Commit
•
cd2fa64
1
Parent(s):
7ca3a4a
update ui.
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ with gr.Blocks() as iface:
|
|
157 |
gr.Markdown(article)
|
158 |
|
159 |
with gr.Row():
|
160 |
-
with gr.Column():
|
161 |
image_input = gr.Image(type="pil")
|
162 |
|
163 |
# with gr.Row():
|
@@ -195,7 +195,7 @@ with gr.Blocks() as iface:
|
|
195 |
label="Repeat Penalty (larger value prevents repetition)",
|
196 |
)
|
197 |
|
198 |
-
with gr.Column():
|
199 |
|
200 |
with gr.Column():
|
201 |
caption_output = gr.Textbox(lines=1, label="Caption Output")
|
@@ -216,12 +216,12 @@ with gr.Blocks() as iface:
|
|
216 |
|
217 |
gr.Markdown("""Trying prompting your input for chat; e.g. example prompt for QA, \"Question: {} Answer:\"""")
|
218 |
with gr.Row():
|
219 |
-
with gr.Column():
|
220 |
chatbot = gr.Chatbot(label="Chat Output (from FlanT5)")
|
221 |
|
222 |
# with gr.Row():
|
223 |
-
with gr.Column():
|
224 |
-
chat_input = gr.Textbox(lines=
|
225 |
|
226 |
with gr.Row():
|
227 |
clear_button = gr.Button(value="Clear", interactive=True)
|
|
|
157 |
gr.Markdown(article)
|
158 |
|
159 |
with gr.Row():
|
160 |
+
with gr.Column(scale=1):
|
161 |
image_input = gr.Image(type="pil")
|
162 |
|
163 |
# with gr.Row():
|
|
|
195 |
label="Repeat Penalty (larger value prevents repetition)",
|
196 |
)
|
197 |
|
198 |
+
with gr.Column(scale=1.5):
|
199 |
|
200 |
with gr.Column():
|
201 |
caption_output = gr.Textbox(lines=1, label="Caption Output")
|
|
|
216 |
|
217 |
gr.Markdown("""Trying prompting your input for chat; e.g. example prompt for QA, \"Question: {} Answer:\"""")
|
218 |
with gr.Row():
|
219 |
+
with gr.Column(scale=1.5):
|
220 |
chatbot = gr.Chatbot(label="Chat Output (from FlanT5)")
|
221 |
|
222 |
# with gr.Row():
|
223 |
+
with gr.Column(scale=1):
|
224 |
+
chat_input = gr.Textbox(lines=2, label="Chat Input")
|
225 |
|
226 |
with gr.Row():
|
227 |
clear_button = gr.Button(value="Clear", interactive=True)
|