Spaces:
Runtime error
Runtime error
Commit
Β·
c8b2f71
1
Parent(s):
e62a9a3
Revert to previous working state from old commit
Browse files
app.py
CHANGED
@@ -407,46 +407,6 @@ with gr.Blocks() as beta:
|
|
407 |
|
408 |
|
409 |
|
410 |
-
# ----- Artbot Tab -----------------------------------------------------------------
|
411 |
-
|
412 |
-
# import random
|
413 |
-
|
414 |
-
# with gr.Blocks(css=".gradio-container {max-width: 650px}") as artbot_1:
|
415 |
-
# gr.Markdown('''
|
416 |
-
# # <span style="display: inline-block; height: 30px; width: 30px; margin-bottom: -3px; border-radius: 7px; background-size: 50px; background-position: center; background-image: url(http://www.astronaut.horse/thumbnail.jpg)"></span> Astronaut Horse
|
417 |
-
|
418 |
-
# These images are generated in real time by a generative machine learning model fine-tuned on input artworks chosen by collaborating visual artists. The hardware resources to run this process have been generously provided at no cost by Hugging Face via a Community GPU Grant. For full control over all input parameters see the other tabs on this application. For more images and information on the project see the main project page or the discord community linked below. The images you generate here are not recorded unless you save them, they belong to everyone and no one.
|
419 |
-
# <br><br>
|
420 |
-
# <a href="http://www.astronaut.horse">http://www.astronaut.horse</a>
|
421 |
-
# <br>
|
422 |
-
# <a href="https://discord.gg/ZctfW4SvGw">https://discord.com</a><br>
|
423 |
-
# ''')
|
424 |
-
|
425 |
-
# # with gr.Row():
|
426 |
-
# # dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
|
427 |
-
# # size_dropdown = gr.Dropdown(['square', 'portrait', 'landscape'], label="choose size...")
|
428 |
-
# # prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
|
429 |
-
|
430 |
-
# all_models = [dropdown for dropdown in list(DROPDOWNS) if 'ahx-' in dropdown]
|
431 |
-
# model_1 = random.choice(all_models)
|
432 |
-
# model_2 = random.choice(all_models)
|
433 |
-
|
434 |
-
# prompt = f"{model_1} {model_2}"
|
435 |
-
|
436 |
-
# seed = random_seed()
|
437 |
-
|
438 |
-
# go_button = gr.Button("generate image", elem_id="go-button")
|
439 |
-
# output = gr.Image(elem_id="output-image")
|
440 |
-
# output_text = gr.Text(elem_id="output-text")
|
441 |
-
# # go_button.click(fn=simple_image_prompt, inputs=[prompt, dropdown, size_dropdown], outputs=[output, output_text])
|
442 |
-
# go_button.click(fn=image_prompt, inputs=[prompt, 7.5, 30, seed, 768, 768, ""], outputs=[output, output_text])
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
# ----- Canny Edge Tab -----------------------------------------------------------------
|
451 |
|
452 |
from PIL import Image
|
@@ -859,8 +819,6 @@ with gr.Blocks() as depth_controlnet_gradio:
|
|
859 |
|
860 |
# ----- Launch Tabs -----------------------------------------------------------------
|
861 |
|
862 |
-
tabbed_interface = gr.TabbedInterface([new_welcome, advanced_tab, beta, canny_blocks_interface, depth_controlnet_gradio], ["
|
863 |
-
# tabbed_interface = gr.TabbedInterface([artbot_1, new_welcome, advanced_tab, beta, canny_blocks_interface, depth_controlnet_gradio], ["ArtBot", "Models", "Advanced", "Beta", "EdgeTrace", "DepthMap"])
|
864 |
-
|
865 |
# tabbed_interface = gr.TabbedInterface([new_welcome, advanced_tab, beta], ["Artbots", "Advanced", "Beta"])
|
866 |
tabbed_interface.launch()
|
|
|
407 |
|
408 |
|
409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
# ----- Canny Edge Tab -----------------------------------------------------------------
|
411 |
|
412 |
from PIL import Image
|
|
|
819 |
|
820 |
# ----- Launch Tabs -----------------------------------------------------------------
|
821 |
|
822 |
+
tabbed_interface = gr.TabbedInterface([new_welcome, advanced_tab, beta, canny_blocks_interface, depth_controlnet_gradio], ["Welcome", "Advanced", "Beta", "EdgeTrace", "DepthMap"])
|
|
|
|
|
823 |
# tabbed_interface = gr.TabbedInterface([new_welcome, advanced_tab, beta], ["Artbots", "Advanced", "Beta"])
|
824 |
tabbed_interface.launch()
|