Spaces:
Running
on
Zero
Running
on
Zero
Upload 5 files
Browse files- feifeilib/feifeiflorence.py +2 -2
- feifeiui/feifeiui.py +2 -2
feifeilib/feifeiflorence.py
CHANGED
@@ -58,5 +58,5 @@ def feifeiflorence(
|
|
58 |
task=task_prompt,
|
59 |
image_size=(image.width, image.height))
|
60 |
out_text=parsed_answer["<MORE_DETAILED_CAPTION>"]
|
61 |
-
out_img=feifeitexttoimg(out_text)
|
62 |
-
return out_text,out_img
|
|
|
58 |
task=task_prompt,
|
59 |
image_size=(image.width, image.height))
|
60 |
out_text=parsed_answer["<MORE_DETAILED_CAPTION>"]
|
61 |
+
out_img, speed = feifeitexttoimg(out_text)
|
62 |
+
return out_text,out_img
|
feifeiui/feifeiui.py
CHANGED
@@ -105,10 +105,10 @@ def create_ui():
|
|
105 |
container=False)
|
106 |
florence_btn = gr.Button(value="Florence")
|
107 |
with gr.Row():
|
108 |
-
with gr.Column(scale=
|
109 |
input_img = gr.Image(label="Input Picture",
|
110 |
show_label=False)
|
111 |
-
with gr.Column(scale=
|
112 |
output_img = gr.Image(label="Input Picture",
|
113 |
interactive=False,
|
114 |
show_label=False)
|
|
|
105 |
container=False)
|
106 |
florence_btn = gr.Button(value="Florence")
|
107 |
with gr.Row():
|
108 |
+
with gr.Column(scale=2):
|
109 |
input_img = gr.Image(label="Input Picture",
|
110 |
show_label=False)
|
111 |
+
with gr.Column(scale=2):
|
112 |
output_img = gr.Image(label="Input Picture",
|
113 |
interactive=False,
|
114 |
show_label=False)
|