Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def message_and_history(img_input_name, input, history, api_key):
|
|
| 108 |
history.append((input, output))
|
| 109 |
return history, history
|
| 110 |
|
| 111 |
-
title = "Compare the
|
| 112 |
|
| 113 |
|
| 114 |
with gr.Blocks(theme=gr.themes.Glass(primary_hue=gr.themes.colors.slate)) as demo:
|
|
@@ -125,7 +125,7 @@ with gr.Blocks(theme=gr.themes.Glass(primary_hue=gr.themes.colors.slate)) as dem
|
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column():
|
| 127 |
|
| 128 |
-
image_name = gr.Textbox(label="Name of the
|
| 129 |
image_name_lst = []
|
| 130 |
image_id_lst = []
|
| 131 |
image_name_str = ''
|
|
@@ -145,12 +145,12 @@ with gr.Blocks(theme=gr.themes.Glass(primary_hue=gr.themes.colors.slate)) as dem
|
|
| 145 |
return image_name_str
|
| 146 |
img_gallery.select(get_select_index, None, image_name)
|
| 147 |
show_button = gr.Button(value="Show Images")
|
| 148 |
-
output_img = gr.Image(type="filepath",label="Selected
|
| 149 |
|
| 150 |
with gr.Row():
|
| 151 |
with gr.Column():
|
| 152 |
api_input = gr.Textbox(label= "Enter Api-key")
|
| 153 |
-
show_concat = gr.Button(value="Compare
|
| 154 |
chatbot = gr.Chatbot()
|
| 155 |
message = gr.Textbox(label="User", placeholder=prompt)
|
| 156 |
state = gr.State()
|
|
|
|
| 108 |
history.append((input, output))
|
| 109 |
return history, history
|
| 110 |
|
| 111 |
+
title = "Compare the Images"
|
| 112 |
|
| 113 |
|
| 114 |
with gr.Blocks(theme=gr.themes.Glass(primary_hue=gr.themes.colors.slate)) as demo:
|
|
|
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column():
|
| 127 |
|
| 128 |
+
image_name = gr.Textbox(label="Name of the Images to be Compared")
|
| 129 |
image_name_lst = []
|
| 130 |
image_id_lst = []
|
| 131 |
image_name_str = ''
|
|
|
|
| 145 |
return image_name_str
|
| 146 |
img_gallery.select(get_select_index, None, image_name)
|
| 147 |
show_button = gr.Button(value="Show Images")
|
| 148 |
+
output_img = gr.Image(type="filepath",label="Selected Images")
|
| 149 |
|
| 150 |
with gr.Row():
|
| 151 |
with gr.Column():
|
| 152 |
api_input = gr.Textbox(label= "Enter Api-key")
|
| 153 |
+
show_concat = gr.Button(value="Compare Images")
|
| 154 |
chatbot = gr.Chatbot()
|
| 155 |
message = gr.Textbox(label="User", placeholder=prompt)
|
| 156 |
state = gr.State()
|