Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
·
62da353
1
Parent(s):
f9b9206
UI reorder test
Browse files
app.py
CHANGED
@@ -780,15 +780,6 @@ def LinPEWFformat_prompt(current_prompt, prev_messages):
|
|
780 |
#-----------------------------------------------------------------------------------------------------------------------------------
|
781 |
|
782 |
with gr.Blocks() as demo:
|
783 |
-
gr.HTML("""<div style="width: 100%; text-align: center">Main ideas for this space is (June 2024) (Custom component planning?):</div>
|
784 |
-
<div style="display: flex; justify-content: center; margin-bottom: 20px; align-items: center;">
|
785 |
-
<div style="width: 20%; text-align: center">We can generate almost any media data and more </div>
|
786 |
-
<div style="width: 20%; text-align: center">A program exist around data </div>
|
787 |
-
<div style="width: 20%; text-align: center">Time moves in a straight so all considerations are flattend by the nature of time </div>
|
788 |
-
<div style="width: 20%; text-align: center">llms good at short questions </div>
|
789 |
-
<div style="width: 20%; text-align: center">HF + Gradio allows for api use so this my prototype tool for tool use test</div>
|
790 |
-
</div>""")
|
791 |
-
|
792 |
with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
|
793 |
with gr.Accordion("Guidance / Themes to consider before you attempt config (Currently Qwen 0.5B)", open=False):
|
794 |
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")
|
@@ -1007,56 +998,65 @@ Creating more diverse paths through the game""")
|
|
1007 |
</div>""")
|
1008 |
|
1009 |
|
1010 |
-
|
1011 |
-
gr.HTML("Make Files and Text ideas for the field and paste <br>When Space is restarted it will clear - zip export and import will be added later")
|
1012 |
-
with gr.Accordion("Upload Files for config"):
|
1013 |
-
gr.Markdown("# Media Saver and Explorer (refresh file list to be resolved - for now upload all files and reload the space - they persist as long as the space creator doesnt reset/update the space - will add manual clear options later)")
|
1014 |
-
with gr.Tab("Upload Files"):
|
1015 |
-
file_input = gr.File(label="Choose File to Upload")
|
1016 |
-
save_output = gr.Textbox(label="Upload Status")
|
1017 |
-
|
1018 |
-
with gr.Tab("File Explorer"):
|
1019 |
-
|
1020 |
-
file_explorer = gr.FileExplorer(
|
1021 |
-
root_dir=SAVE_DIR,
|
1022 |
-
glob="*.*",
|
1023 |
-
file_count="single",
|
1024 |
-
height=300,
|
1025 |
-
label="Select a file to view"
|
1026 |
-
)
|
1027 |
-
with gr.Row():
|
1028 |
-
refresh_button = gr.Button("Refresh", scale=1)
|
1029 |
-
view_button = gr.Button("View File")
|
1030 |
-
image_output = gr.Image(label="Image Output", type="pil")
|
1031 |
-
audio_output = gr.Audio(label="Audio Output")
|
1032 |
-
video_output = gr.Video(label="Video Output")
|
1033 |
-
error_output = gr.Textbox(label="Error")
|
1034 |
-
|
1035 |
-
file_input.upload(
|
1036 |
-
save_file,
|
1037 |
-
inputs=file_input,
|
1038 |
-
outputs=[save_output, file_explorer, file_input]
|
1039 |
-
)
|
1040 |
-
|
1041 |
-
view_button.click(
|
1042 |
-
view_file,
|
1043 |
-
inputs=file_explorer,
|
1044 |
-
outputs=[image_output, audio_output, video_output, error_output]
|
1045 |
-
)
|
1046 |
-
|
1047 |
-
refresh_button.click(
|
1048 |
-
refresh_file_explorer,
|
1049 |
-
outputs=file_explorer
|
1050 |
-
)
|
1051 |
-
|
1052 |
-
with gr.Tab("Batch add files to config"):
|
1053 |
-
gr.HTML("Placeholder for Config parser to allow dropdowns for the media parts of the config inserted to make assigning media quick")
|
1054 |
-
gr.HTML("Placeholder for Config parser to allow for current zerospace creation and placement into the config (LLM can give list of media but still have to figure out workflow from there)")
|
1055 |
-
|
1056 |
-
gr.HTML("Placeholder for clearing uploaded assets (public space and temporary persistence = sharing and space problems)")
|
1057 |
|
1058 |
with gr.Row():
|
1059 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1060 |
with gr.Accordion("My Previous Quick Config Attempts", open=False):
|
1061 |
for experimetal_config_name, experimetal_config in ExampleGameConfigs.items():
|
1062 |
with gr.Tab(experimetal_config_name):
|
|
|
780 |
#-----------------------------------------------------------------------------------------------------------------------------------
|
781 |
|
782 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
|
784 |
with gr.Accordion("Guidance / Themes to consider before you attempt config (Currently Qwen 0.5B)", open=False):
|
785 |
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")
|
|
|
998 |
</div>""")
|
999 |
|
1000 |
|
1001 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1002 |
|
1003 |
with gr.Row():
|
1004 |
with gr.Column(scale=1):
|
1005 |
+
gr.HTML("""<div style="width: 100%; text-align: center">Main ideas for this space is (June 2024) (Custom component planning?):</div>
|
1006 |
+
<div style="display: flex; justify-content: center; margin-bottom: 20px; align-items: center;">
|
1007 |
+
<div style="width: 20%; text-align: center">We can generate almost any media data and more </div>
|
1008 |
+
<div style="width: 20%; text-align: center">A program exist around data </div>
|
1009 |
+
<div style="width: 20%; text-align: center">Time moves in a straight so all considerations are flattend by the nature of time </div>
|
1010 |
+
<div style="width: 20%; text-align: center">llms good at short questions </div>
|
1011 |
+
<div style="width: 20%; text-align: center">HF + Gradio allows for api use so this my prototype tool for tool use test</div>
|
1012 |
+
</div>""")
|
1013 |
+
with gr.Accordion("Temporary Asset Management Assist - click to open", open=False):
|
1014 |
+
gr.HTML("Make Files and Text ideas for the field and paste <br>When Space is restarted it will clear - zip export and import will be added later")
|
1015 |
+
with gr.Accordion("Upload Files for config"):
|
1016 |
+
gr.Markdown("# Media Saver and Explorer (refresh file list to be resolved - for now upload all files and reload the space - they persist as long as the space creator doesnt reset/update the space - will add manual clear options later)")
|
1017 |
+
with gr.Tab("Upload Files"):
|
1018 |
+
file_input = gr.File(label="Choose File to Upload")
|
1019 |
+
save_output = gr.Textbox(label="Upload Status")
|
1020 |
+
|
1021 |
+
with gr.Tab("File Explorer"):
|
1022 |
+
|
1023 |
+
file_explorer = gr.FileExplorer(
|
1024 |
+
root_dir=SAVE_DIR,
|
1025 |
+
glob="*.*",
|
1026 |
+
file_count="single",
|
1027 |
+
height=300,
|
1028 |
+
label="Select a file to view"
|
1029 |
+
)
|
1030 |
+
with gr.Row():
|
1031 |
+
refresh_button = gr.Button("Refresh", scale=1)
|
1032 |
+
view_button = gr.Button("View File")
|
1033 |
+
image_output = gr.Image(label="Image Output", type="pil")
|
1034 |
+
audio_output = gr.Audio(label="Audio Output")
|
1035 |
+
video_output = gr.Video(label="Video Output")
|
1036 |
+
error_output = gr.Textbox(label="Error")
|
1037 |
+
|
1038 |
+
file_input.upload(
|
1039 |
+
save_file,
|
1040 |
+
inputs=file_input,
|
1041 |
+
outputs=[save_output, file_explorer, file_input]
|
1042 |
+
)
|
1043 |
+
|
1044 |
+
view_button.click(
|
1045 |
+
view_file,
|
1046 |
+
inputs=file_explorer,
|
1047 |
+
outputs=[image_output, audio_output, video_output, error_output]
|
1048 |
+
)
|
1049 |
+
|
1050 |
+
refresh_button.click(
|
1051 |
+
refresh_file_explorer,
|
1052 |
+
outputs=file_explorer
|
1053 |
+
)
|
1054 |
+
|
1055 |
+
with gr.Tab("Batch add files to config"):
|
1056 |
+
gr.HTML("Placeholder for Config parser to allow dropdowns for the media parts of the config inserted to make assigning media quick")
|
1057 |
+
gr.HTML("Placeholder for Config parser to allow for current zerospace creation and placement into the config (LLM can give list of media but still have to figure out workflow from there)")
|
1058 |
+
|
1059 |
+
gr.HTML("Placeholder for clearing uploaded assets (public space and temporary persistence = sharing and space problems)")
|
1060 |
with gr.Accordion("My Previous Quick Config Attempts", open=False):
|
1061 |
for experimetal_config_name, experimetal_config in ExampleGameConfigs.items():
|
1062 |
with gr.Tab(experimetal_config_name):
|