Spaces:
Runtime error
Runtime error
tombetthauser
commited on
Commit
Β·
77195a0
1
Parent(s):
6b22177
Fixed and readded new beta tab
Browse files
app.py
CHANGED
@@ -289,7 +289,7 @@ css = ""
|
|
289 |
examples = []
|
290 |
|
291 |
|
292 |
-
# ~~~ DEMO TAB
|
293 |
|
294 |
with gr.Blocks(css=css) as demo:
|
295 |
state = gr.Variable({
|
@@ -334,19 +334,8 @@ with gr.Blocks(css=css) as demo:
|
|
334 |
|
335 |
# ~~~ BETA TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
336 |
|
337 |
-
# def infer(text, dropdown):
|
338 |
-
# images_list = pipe(
|
339 |
-
# [f"{text} in the style of <{dropdown}>"],
|
340 |
-
# num_inference_steps=30,
|
341 |
-
# guidance_scale=7.5
|
342 |
-
# )
|
343 |
-
# return images_list.images, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
344 |
|
345 |
-
|
346 |
-
# css = ""
|
347 |
-
# examples = []
|
348 |
-
|
349 |
-
with gr.Blocks() as new_welcome:
|
350 |
gr.Markdown('''
|
351 |
# π§βπ Beta Concept Loader
|
352 |
|
@@ -370,5 +359,5 @@ with gr.Blocks() as new_welcome:
|
|
370 |
# -----------------------------------------------------------------------------------------------
|
371 |
|
372 |
|
373 |
-
tabbed_interface = gr.TabbedInterface([new_welcome, dropdown_tab], ["Welcome!", "Advanced Prompting"])
|
374 |
tabbed_interface.launch()
|
|
|
289 |
examples = []
|
290 |
|
291 |
|
292 |
+
# ~~~ UNUSED DEMO TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
293 |
|
294 |
with gr.Blocks(css=css) as demo:
|
295 |
state = gr.Variable({
|
|
|
334 |
|
335 |
# ~~~ BETA TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
336 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
+
with gr.Blocks() as beta:
|
|
|
|
|
|
|
|
|
339 |
gr.Markdown('''
|
340 |
# π§βπ Beta Concept Loader
|
341 |
|
|
|
359 |
# -----------------------------------------------------------------------------------------------
|
360 |
|
361 |
|
362 |
+
tabbed_interface = gr.TabbedInterface([new_welcome, dropdown_tab, beta], ["Welcome!", "Advanced Prompting", "Beta Concepts"])
|
363 |
tabbed_interface.launch()
|