kwabs22 commited on
Commit
d6aaec5
·
1 Parent(s): 89304fe

Tabs instead of Accordion

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -732,7 +732,7 @@ def save_file(file):
732
  shutil.copy2(file.name, dest_path)
733
 
734
  # Return success message and updated FileExplorer
735
- return f"File saved as {SAVE_DIR}{new_filename}", gr.update(value=SAVE_DIR), gr.update(value=None)
736
  except Exception as e:
737
  return f"Error saving file: {str(e)}", gr.update(value=SAVE_DIR), gr.update()
738
 
@@ -785,7 +785,7 @@ with gr.Blocks() as demo:
785
  with gr.Accordion("Leaveraging Huggingface chat"):
786
  gr.HTML("https://huggingface.co/chat - Huggingface chat supports - State Management (Threads), Image Generation and editing, Websearch, Document parsing (PDF?), Assistants and larger models than zero gpu can support in July 2024 (Unquantised 30B and above)")
787
  gr.HTML("Existing Assistants to use and planning custom assistants placeholder")
788
- with gr.Accordion("Main problem to solve - Concept combination / integration and non-linear progression planning"):
789
  gr.HTML("The story and the gameplay dont have to occur at the same time - eg. ")
790
  gr.Markdown("## Prompts / Mermaid diagrams to be made from the ideas for workflow")
791
  with gr.Tab("Using Time as a proxy for all conepts?"):
@@ -808,7 +808,7 @@ with gr.Blocks() as demo:
808
  with gr.Accordion("Mermaid Structures - click to open", open=False):
809
  for key, item in examplemermaidconceptblendingstrutures.items():
810
  gr.Code(item, label=key)
811
- with gr.Accordion("Guidance / Themes to consider before you attempt config (Currently Qwen 0.5B)", open=False):
812
  gr.HTML("Copy paste any old config to llm and ask to remix is the easiest <br>To bake 'Moral of the story' in you have to be very deliberate")
813
  gr.HTML("UI can be media and all items can have media")
814
  with gr.Accordion("Old Ideas to merge", open=False):
@@ -887,7 +887,7 @@ with gr.Blocks() as demo:
887
  with gr.Tab("Themes and Topics"):
888
  gr.HTML("https://en.wikipedia.org/wiki/History#Periods")
889
 
890
- with gr.Accordion("New Config Proto Assist - Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now", open=False):
891
  with gr.Tab("Linear - Player List to Empty Config with Edit support"):
892
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
893
  gr.Markdown("# Story and Timeline Generator")
@@ -980,7 +980,7 @@ with gr.Blocks() as demo:
980
  gr.HTML("Placeholder for analysing multiple stories for their network structures and creating general rules for a strucutre generator based of named entity recognition and bias to locations or people - The extreme long way")
981
 
982
 
983
- with gr.Accordion("Existing Config Crafting Progression - click to open", open=False):
984
  with gr.Accordion("Test for config to gradio components order - ignore for now", open=False ):
985
  gr.HTML("Placeholder for changing the render below to the one above for new config but with the ability to upload files aka the media field should be file uploader / dropdowns for all files that have been uploaded")
986
  gr.Markdown("Asset Generation")
 
732
  shutil.copy2(file.name, dest_path)
733
 
734
  # Return success message and updated FileExplorer
735
+ return f"File saved as {SAVE_DIR}/{new_filename}", gr.update(value=SAVE_DIR), gr.update(value=None)
736
  except Exception as e:
737
  return f"Error saving file: {str(e)}", gr.update(value=SAVE_DIR), gr.update()
738
 
 
785
  with gr.Accordion("Leaveraging Huggingface chat"):
786
  gr.HTML("https://huggingface.co/chat - Huggingface chat supports - State Management (Threads), Image Generation and editing, Websearch, Document parsing (PDF?), Assistants and larger models than zero gpu can support in July 2024 (Unquantised 30B and above)")
787
  gr.HTML("Existing Assistants to use and planning custom assistants placeholder")
788
+ with gr.Tab("Main problem to solve - Concept combination / integration and non-linear progression planning"):
789
  gr.HTML("The story and the gameplay dont have to occur at the same time - eg. ")
790
  gr.Markdown("## Prompts / Mermaid diagrams to be made from the ideas for workflow")
791
  with gr.Tab("Using Time as a proxy for all conepts?"):
 
808
  with gr.Accordion("Mermaid Structures - click to open", open=False):
809
  for key, item in examplemermaidconceptblendingstrutures.items():
810
  gr.Code(item, label=key)
811
+ with gr.Tab("Guidance / Themes to consider before you attempt config (Currently Qwen 0.5B)"):
812
  gr.HTML("Copy paste any old config to llm and ask to remix is the easiest <br>To bake 'Moral of the story' in you have to be very deliberate")
813
  gr.HTML("UI can be media and all items can have media")
814
  with gr.Accordion("Old Ideas to merge", open=False):
 
887
  with gr.Tab("Themes and Topics"):
888
  gr.HTML("https://en.wikipedia.org/wiki/History#Periods")
889
 
890
+ with gr.Tab("New Config Proto Assist - Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now"):
891
  with gr.Tab("Linear - Player List to Empty Config with Edit support"):
892
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
893
  gr.Markdown("# Story and Timeline Generator")
 
980
  gr.HTML("Placeholder for analysing multiple stories for their network structures and creating general rules for a strucutre generator based of named entity recognition and bias to locations or people - The extreme long way")
981
 
982
 
983
+ with gr.Tab("Existing Config Crafting Progression - click to open"):
984
  with gr.Accordion("Test for config to gradio components order - ignore for now", open=False ):
985
  gr.HTML("Placeholder for changing the render below to the one above for new config but with the ability to upload files aka the media field should be file uploader / dropdowns for all files that have been uploaded")
986
  gr.Markdown("Asset Generation")