awacke1 commited on
Commit
3fdb079
·
verified ·
1 Parent(s): 4ae744d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -9
app.py CHANGED
@@ -1,9 +1,33 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # App layout setup
4
  st.set_page_config(layout="wide")
5
 
6
- # Main Sidebar with menus
7
  st.sidebar.title("Video Generation")
8
  menu_options = ["Generate Video", "My Videos", "Settings", "Help"]
9
  menu_selection = st.sidebar.radio("Menu", menu_options)
@@ -14,22 +38,19 @@ if menu_selection == "Generate Video":
14
  st.sidebar.selectbox("Choose Preset", ["Preset 1", "Preset 2", "Preset 3"], key="preset")
15
  if st.sidebar.button("Get More Credits"):
16
  st.write("Redirecting to credits purchase...")
17
-
18
  elif menu_selection == "My Videos":
19
  st.sidebar.text("Videos in progress:")
20
  st.sidebar.progress(75)
21
  st.sidebar.text("Completed videos:")
22
  video_list = ["Video1", "Video2"]
23
  selected_video = st.sidebar.radio("Select Video", video_list)
24
-
25
  elif menu_selection == "Settings":
26
  st.sidebar.checkbox("Enable Notifications")
27
  st.sidebar.checkbox("High Quality Rendering")
28
-
29
  elif menu_selection == "Help":
30
  st.sidebar.write("For assistance, please visit our help center.")
31
 
32
- # Main area
33
  st.title("Video Generator Dashboard")
34
  st.text_area("Prompt", "Enter your video description here...", key="video_prompt")
35
  st.number_input("Set Duration (seconds)", min_value=10, max_value=300, key="duration", value=10)
@@ -42,25 +63,25 @@ st.button("Download")
42
  st.button("❤️")
43
  st.button("Close")
44
 
 
 
 
 
45
  # Right sidebar for video processing
46
  with st.sidebar:
47
  st.write("Credits: 3,465")
48
  st.button("Get Credits")
49
-
50
  st.subheader("Video Status")
51
  video_processing = {"Video3": 91, "Video4": 75}
52
  for video, progress in video_processing.items():
53
  st.text(video)
54
  st.progress(progress)
55
-
56
  st.subheader("Completed Videos")
57
  st.button("Video1")
58
  st.button("Video2")
59
-
60
  if st.button("Fill out a short survey"):
61
  st.write("Redirecting to survey...")
62
 
63
  # Footer with star rating
64
  st.write("Rate this App")
65
  st.slider("", 0, 5, 1)
66
-
 
1
  import streamlit as st
2
+ import pandas as pd
3
+
4
+ # Data for artistic prompts
5
+ data = {
6
+ "Category": [
7
+ "Render Quality", "Render Quality", "Render Quality", "Render Quality", "Render Quality",
8
+ "Didn't Match Prompt", "Didn't Match Prompt", "Didn't Match Prompt", "Didn't Match Prompt", "Didn't Match Prompt"
9
+ ],
10
+ "Prompt": [
11
+ "1. Hyper-realistic Impressionist painting of a majestic lighthouse on a rocky coast, with individual skin pores visible on any human figures. Use bold brushstrokes and a vibrant color palette to capture the interplay of light and shadow as the lighthouse beam cuts through a stormy night sky.",
12
+ "2. Macro photograph of a dewdrop on a leaf, showing surface tension, incorporated into a Cubist still life featuring a pair of vintage eyeglasses. Focus on the intricate details of the frames, lenses, and water droplet, using a warm color scheme to evoke a sense of nostalgia and wisdom.",
13
+ "3. Photorealistic render of a futuristic cityscape at sunset, blended with a Surrealist depiction of a rustic wooden stool in a sunlit artist's studio. Emphasize the texture of the wood and the interplay of light and shadow, using a mix of earthy tones and highlights against the backdrop of the futuristic skyline.",
14
+ "4. Ultra-detailed close-up of a mechanical watch movement, viewed through an ornate window frame in a Minimalist scene. Contrast the intricate details of the window and watch with a dreamy, soft-focus landscape beyond.",
15
+ "5. Lifelike 3D render of a classic car, showcasing reflections and materials, combined with a Baroque close-up study of interlaced fingers gripping the steering wheel. Use a monochromatic color scheme to emphasize the form and texture of the hands and car interior, with dramatic lighting to create depth and emotion.",
16
+ "6. A serene koi pond under cherry blossoms with an Impressionist painting of a majestic lighthouse on a rocky coast in the background - check if all elements are present, including the bold brushstrokes and vibrant color palette capturing the interplay of light and shadow.",
17
+ "7. Steampunk elephant in a Victorian parlor examining a Cubist still life featuring a pair of vintage eyeglasses - verify setting, subject, and the focus on intricate details of the frames and lenses, using a warm color scheme.",
18
+ "8. Cyberpunk samurai wielding a laser katana in a Surrealist depiction of a rustic wooden stool in a sunlit artist's studio - ensure style and weapon match, while emphasizing the texture of the wood and the interplay of light and shadow.",
19
+ "9. Art Nouveau poster of a mermaid playing a harp in a Minimalist scene viewed through an ornate window frame - confirm style and subject, contrasting the intricate details of the window with a dreamy, soft-focus landscape beyond.",
20
+ "10. Surrealist landscape with melting clocks and a Baroque close-up study of interlaced fingers - check for Dalí-esque elements and the monochromatic color scheme emphasizing the form and texture of the hands."
21
+ ]
22
+ }
23
+
24
+ # Convert data to DataFrame
25
+ df = pd.DataFrame(data)
26
 
27
  # App layout setup
28
  st.set_page_config(layout="wide")
29
 
30
+ # Sidebar setup
31
  st.sidebar.title("Video Generation")
32
  menu_options = ["Generate Video", "My Videos", "Settings", "Help"]
33
  menu_selection = st.sidebar.radio("Menu", menu_options)
 
38
  st.sidebar.selectbox("Choose Preset", ["Preset 1", "Preset 2", "Preset 3"], key="preset")
39
  if st.sidebar.button("Get More Credits"):
40
  st.write("Redirecting to credits purchase...")
 
41
  elif menu_selection == "My Videos":
42
  st.sidebar.text("Videos in progress:")
43
  st.sidebar.progress(75)
44
  st.sidebar.text("Completed videos:")
45
  video_list = ["Video1", "Video2"]
46
  selected_video = st.sidebar.radio("Select Video", video_list)
 
47
  elif menu_selection == "Settings":
48
  st.sidebar.checkbox("Enable Notifications")
49
  st.sidebar.checkbox("High Quality Rendering")
 
50
  elif menu_selection == "Help":
51
  st.sidebar.write("For assistance, please visit our help center.")
52
 
53
+ # Main area setup
54
  st.title("Video Generator Dashboard")
55
  st.text_area("Prompt", "Enter your video description here...", key="video_prompt")
56
  st.number_input("Set Duration (seconds)", min_value=10, max_value=300, key="duration", value=10)
 
63
  st.button("❤️")
64
  st.button("Close")
65
 
66
+ # Display artistic prompts as a DataFrame
67
+ st.write("Artistic Prompts Dataset")
68
+ st.dataframe(df)
69
+
70
  # Right sidebar for video processing
71
  with st.sidebar:
72
  st.write("Credits: 3,465")
73
  st.button("Get Credits")
 
74
  st.subheader("Video Status")
75
  video_processing = {"Video3": 91, "Video4": 75}
76
  for video, progress in video_processing.items():
77
  st.text(video)
78
  st.progress(progress)
 
79
  st.subheader("Completed Videos")
80
  st.button("Video1")
81
  st.button("Video2")
 
82
  if st.button("Fill out a short survey"):
83
  st.write("Redirecting to survey...")
84
 
85
  # Footer with star rating
86
  st.write("Rate this App")
87
  st.slider("", 0, 5, 1)