Spaces:
Sleeping
Sleeping
acumplid
commited on
Commit
•
f75d6a4
1
Parent(s):
c725702
Remove interactive icons from image
Browse files
app.py
CHANGED
@@ -62,13 +62,21 @@ def submit_input(input_, repetition_penalty, temperature):
|
|
62 |
if codes['interval'] in ["tot el dia"]:
|
63 |
return (
|
64 |
outputs["model_answer"],
|
65 |
-
gr.Image(
|
|
|
|
|
|
|
|
|
66 |
outputs["ccma_response"]
|
67 |
)
|
68 |
else:
|
69 |
return (
|
70 |
outputs["model_answer"],
|
71 |
-
gr.Image(
|
|
|
|
|
|
|
|
|
72 |
outputs["ccma_response"]
|
73 |
)
|
74 |
|
@@ -153,6 +161,8 @@ with gr.Blocks(**AinaGradioTheme().get_kwargs()) as demo:
|
|
153 |
with gr.Row():
|
154 |
output_image = Image(
|
155 |
show_label=False,
|
|
|
|
|
156 |
value=None,
|
157 |
width=20,
|
158 |
height=50
|
|
|
62 |
if codes['interval'] in ["tot el dia"]:
|
63 |
return (
|
64 |
outputs["model_answer"],
|
65 |
+
gr.Image(
|
66 |
+
value=None,
|
67 |
+
show_share_button=False,
|
68 |
+
show_download_button=False
|
69 |
+
),
|
70 |
outputs["ccma_response"]
|
71 |
)
|
72 |
else:
|
73 |
return (
|
74 |
outputs["model_answer"],
|
75 |
+
gr.Image(
|
76 |
+
value=url_images[0],
|
77 |
+
show_share_button=False,
|
78 |
+
show_download_button=False
|
79 |
+
),
|
80 |
outputs["ccma_response"]
|
81 |
)
|
82 |
|
|
|
161 |
with gr.Row():
|
162 |
output_image = Image(
|
163 |
show_label=False,
|
164 |
+
show_share_button=False,
|
165 |
+
show_download_button=False,
|
166 |
value=None,
|
167 |
width=20,
|
168 |
height=50
|