Spaces:
Sleeping
Sleeping
Stardragon2099
commited on
Commit
·
6e5e0b9
1
Parent(s):
7ff9e80
ported to chatgpt api
Browse files
app.py
CHANGED
@@ -268,7 +268,7 @@ Component_list = ["choke_full_rd_gd", "choke_full_gn_ye", "Y_capacitor","varisto
|
|
268 |
|
269 |
with gr.Blocks() as demo:
|
270 |
gr.Markdown("Florence-enphase Leg Lift, Angle shift, Polarity and detection classifier")
|
271 |
-
image = gr.Image(type="pil", label="Upload Image", width=
|
272 |
method_choice = gr.Dropdown(choices=Method, label="Method")
|
273 |
componet_choice = gr.Dropdown(choices = Component_list, label="Component label")
|
274 |
prompt = gr.Textbox(value=get_prompt(Method[0], Component_list[0]), label="Prompt")
|
|
|
268 |
|
269 |
with gr.Blocks() as demo:
|
270 |
gr.Markdown("Florence-enphase Leg Lift, Angle shift, Polarity and detection classifier")
|
271 |
+
image = gr.Image(type="pil", label="Upload Image", width=500, height=500) # Ensures image is passed as a PIL object
|
272 |
method_choice = gr.Dropdown(choices=Method, label="Method")
|
273 |
componet_choice = gr.Dropdown(choices = Component_list, label="Component label")
|
274 |
prompt = gr.Textbox(value=get_prompt(Method[0], Component_list[0]), label="Prompt")
|