Yin Fang
commited on
Commit
·
1def893
1
Parent(s):
d419ce6
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ with gr.Blocks() as demo:
|
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
gen_output = gr.Textbox(label="Generation Results", lines=5, placeholder="")
|
| 181 |
-
gen_output_image = gr.
|
| 182 |
|
| 183 |
gr.Examples(
|
| 184 |
examples=[["[C][=C][C][=C][C][=C][Ring1][=Branch1]"],
|
|
@@ -197,11 +197,12 @@ with gr.Blocks() as demo:
|
|
| 197 |
opt_button = gr.Button("Optimize")
|
| 198 |
|
| 199 |
with gr.Column():
|
| 200 |
-
opt_input_img = gr.
|
| 201 |
opt_output = gr.Textbox(label="Optimization Results", lines=3, placeholder="")
|
| 202 |
opt_output_imp = gr.Textbox(label="Optimization Property Improvements", lines=3, placeholder="")
|
| 203 |
opt_output_sim = gr.Textbox(label="Similarity", lines=3, placeholder="")
|
| 204 |
opt_output_img = gr.Textbox(label="Output Visualization", lines=3, placeholder="")
|
|
|
|
| 205 |
|
| 206 |
gr.Examples(
|
| 207 |
examples=[
|
|
|
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
gen_output = gr.Textbox(label="Generation Results", lines=5, placeholder="")
|
| 181 |
+
gen_output_image = gr.Image(type='pil', label="Visualization")
|
| 182 |
|
| 183 |
gr.Examples(
|
| 184 |
examples=[["[C][=C][C][=C][C][=C][Ring1][=Branch1]"],
|
|
|
|
| 197 |
opt_button = gr.Button("Optimize")
|
| 198 |
|
| 199 |
with gr.Column():
|
| 200 |
+
opt_input_img = gr.Image(type='pil', label="Input Visualization")
|
| 201 |
opt_output = gr.Textbox(label="Optimization Results", lines=3, placeholder="")
|
| 202 |
opt_output_imp = gr.Textbox(label="Optimization Property Improvements", lines=3, placeholder="")
|
| 203 |
opt_output_sim = gr.Textbox(label="Similarity", lines=3, placeholder="")
|
| 204 |
opt_output_img = gr.Textbox(label="Output Visualization", lines=3, placeholder="")
|
| 205 |
+
opt_output_img = gr.Image(type='pil', label="Output Visualization")
|
| 206 |
|
| 207 |
gr.Examples(
|
| 208 |
examples=[
|