Update app.py
Browse files
app.py
CHANGED
|
@@ -839,7 +839,7 @@ def applyStyle(evt: gr.SelectData, seshid):
|
|
| 839 |
def uploadToScriptGenPromise(frmt, seshid):
|
| 840 |
sesh = getSesh(seshid)
|
| 841 |
if True:
|
| 842 |
-
formats = ['Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', '
|
| 843 |
#formats = [frmt]
|
| 844 |
number_of_items = [7, 3, 7, 3, 3, 7]
|
| 845 |
urls = [sesh.item_data[sesh.current_img_signature][sesh.item_data_keys[sesh.current_img_signature]['room_type']][sesh.item_data_keys[sesh.current_img_signature]['room_style']][sesh.item_data_keys[sesh.current_img_signature]['price']][sesh.item_data_keys[sesh.current_img_signature]['Paletteid']][itemidx_item[1]][itemidx_item[0]]['href'] for itemidx_item in sesh.display_items_[sesh.current_img_signature] if itemidx_item[1] not in ['Palette', 'Living Room', 'Bedroom']]
|
|
@@ -2052,7 +2052,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), js=js_func, css=css) as demo:
|
|
| 2052 |
color_Palettes = gr.Gallery(label='Proposed Color Palettes', columns=2, height=200, elem_classes=['scroll'])
|
| 2053 |
with gr.Group(visible=False) as script_div:
|
| 2054 |
status_text = gr.Textbox("loading info for color and character\nstand by...\n", show_label=True, interactive=False, lines=3, label='Status', visible=False)
|
| 2055 |
-
scripts_drop = gr.Dropdown(['Status', 'Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', '
|
| 2056 |
script_display = gr.Textbox(label='Script', max_lines=7)
|
| 2057 |
script_broker = gr.Textbox(visible=False)
|
| 2058 |
item_links_load = gr.Textbox(visible=False)
|
|
|
|
| 839 |
def uploadToScriptGenPromise(frmt, seshid):
|
| 840 |
sesh = getSesh(seshid)
|
| 841 |
if True:
|
| 842 |
+
formats = ['Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', 'Tik Tok', 'LinkedIn']
|
| 843 |
#formats = [frmt]
|
| 844 |
number_of_items = [7, 3, 7, 3, 3, 7]
|
| 845 |
urls = [sesh.item_data[sesh.current_img_signature][sesh.item_data_keys[sesh.current_img_signature]['room_type']][sesh.item_data_keys[sesh.current_img_signature]['room_style']][sesh.item_data_keys[sesh.current_img_signature]['price']][sesh.item_data_keys[sesh.current_img_signature]['Paletteid']][itemidx_item[1]][itemidx_item[0]]['href'] for itemidx_item in sesh.display_items_[sesh.current_img_signature] if itemidx_item[1] not in ['Palette', 'Living Room', 'Bedroom']]
|
|
|
|
| 2052 |
color_Palettes = gr.Gallery(label='Proposed Color Palettes', columns=2, height=200, elem_classes=['scroll'])
|
| 2053 |
with gr.Group(visible=False) as script_div:
|
| 2054 |
status_text = gr.Textbox("loading info for color and character\nstand by...\n", show_label=True, interactive=False, lines=3, label='Status', visible=False)
|
| 2055 |
+
scripts_drop = gr.Dropdown(['Status', 'Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', 'Tik Tok', 'LinkedIn'], label='Scripts', interactive=True)
|
| 2056 |
script_display = gr.Textbox(label='Script', max_lines=7)
|
| 2057 |
script_broker = gr.Textbox(visible=False)
|
| 2058 |
item_links_load = gr.Textbox(visible=False)
|