Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -600,11 +600,6 @@ with gr.Blocks() as demo:
|
|
600 |
gr.Markdown("<h3>" + caution + "</h3>")
|
601 |
|
602 |
|
603 |
-
if __name__ == '__main__':
|
604 |
-
|
605 |
-
demo.queue()
|
606 |
-
demo.launch(debug=True)
|
607 |
-
|
608 |
def request_DallE3(client, prompt, size, quality, out_image_path):
|
609 |
|
610 |
err_msg = ""
|
@@ -709,3 +704,8 @@ def request_Vision(client, prompt, image_path, detail, max_tokens):
|
|
709 |
"error_message" : err_msg
|
710 |
}
|
711 |
return json.dumps(vision_result)
|
|
|
|
|
|
|
|
|
|
|
|
600 |
gr.Markdown("<h3>" + caution + "</h3>")
|
601 |
|
602 |
|
|
|
|
|
|
|
|
|
|
|
603 |
def request_DallE3(client, prompt, size, quality, out_image_path):
|
604 |
|
605 |
err_msg = ""
|
|
|
704 |
"error_message" : err_msg
|
705 |
}
|
706 |
return json.dumps(vision_result)
|
707 |
+
|
708 |
+
if __name__ == '__main__':
|
709 |
+
|
710 |
+
demo.queue()
|
711 |
+
demo.launch(debug=True)
|