Spaces:
Running
Running
charliealonso
commited on
Commit
•
8fdd6c6
1
Parent(s):
eb56877
Initial files
Browse files- app.py +33 -0
- escenografia.csv +22 -0
- volumetrics.csv +16 -0
app.py
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import gradio as gr
|
3 |
+
from gradio.components import Textbox, Dropdown
|
4 |
+
|
5 |
+
# Función que se ejecuta cuando el usuario selecciona un archivo CSV en la lista desplegable
|
6 |
+
def seleccionar_archivo_csv(nombre_archivo):
|
7 |
+
ruta_archivo_seleccionado = []
|
8 |
+
ruta_archivo_seleccionado.append(nombre_archivo + ".csv")
|
9 |
+
return f"Se ha seleccionado el archivo {nombre_archivo}"
|
10 |
+
|
11 |
+
# Obtener el directorio raíz de la aplicación
|
12 |
+
root_dir = "."
|
13 |
+
|
14 |
+
# Buscar los archivos CSV en el directorio raíz
|
15 |
+
csv_files = [f for f in os.listdir(root_dir) if f.endswith('.csv')]
|
16 |
+
|
17 |
+
# Crear una lista con los nombres de los archivos CSV encontrados
|
18 |
+
csv_file_names = [f[:-4] for f in csv_files]
|
19 |
+
|
20 |
+
# Crear una lista desplegable con los nombres de los archivos CSV encontrados
|
21 |
+
csv_dropdown = Dropdown(choices=csv_file_names, label="Selecciona un archivo CSV")
|
22 |
+
|
23 |
+
# Definir los objetos de entrada y salida de la interfaz
|
24 |
+
app1 = gr.Interface(
|
25 |
+
fn=seleccionar_archivo_csv,
|
26 |
+
inputs=csv_dropdown,
|
27 |
+
outputs="text",
|
28 |
+
title="Selecciona un archivo CSV",
|
29 |
+
theme="default"
|
30 |
+
)
|
31 |
+
|
32 |
+
# Ejecuta la interfaz de usuario
|
33 |
+
app1.launch()
|
escenografia.csv
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
escenario,evento,ambiente,color,iluminacion,atmosfera,detalle,formato
|
2 |
+
Design an immersive stage set for ,"a new product launch event, ",Featuring a futuristic and otherworldly aesthetic,and bright colors.,dramatic lighting,to create a futuristic atmosphere. ,"intricate set design, and stunning visual effects to create an unforgettable experience for the audience.",4K --ar 16:9
|
3 |
+
Create a stunning stage for ,"a fashion show,",Featuring a minimalist and elegant design. ,and tasteful decor.,dynamic lightin,to create a visually dynamic backdrop.,"Use clean lines, simple shapes, and muted tones to showcase the clothing designs. ",
|
4 |
+
Design a captivating stage for ,"a video game launch event, ",Featuring a vibrant and interactive environment. ,and a monochromatic color palette.,"subdued lighting, ",to create a sophisticated atmosphere.,and custom-built props to create a world that immerses the audience in the game's universe.,
|
5 |
+
Create an awe-inspiring stage set for ,"a film premiere, featuring a grand and luxurious aesthetic. ","Use ornate set design, ",and graphic shapes.,breathtaking lightning,to create a sense of movement and flow.,and intricate visual effects to create an experience that feels larger than life.,
|
6 |
+
Design a striking stage for ,"a charity gala or fundraising event, ",Featuring an elegant and sophisticated aesthetic. ,and elegant classic design elements.,spectacular lighting,to create a professional and streamlined atmosphere. ,"Incorporate bold graphics, eye-catching imagery, and striking typography to create a cohesive and visually appealing display.",
|
7 |
+
Design an immersive stage for ,a technology product launch event. ,"Use sleek, modern design elements ",and fluid lines and organic shapes.,stunning lightning,To create an elegant and upscale atmosphere.,and custom-built props to create an atmosphere that feels upscale and refined.,
|
8 |
+
Create a captivating stage set for ,a fashion runway show. ,"Use bold, striking colors ","and clean, modern design elements.",colored lighting,To create a nature-inspired setting.,Incorporate interactive displays and innovative lighting effects to showcase the product's advanced features and capabilities.,
|
9 |
+
Design a stunning stage for ,a gala or awards ceremony. ,Use a muted color palette ,"and whimsical, playful elements.",warm lighting,To create an immersive and interactive experience.,ncorporate glamorous lighting and decorative accents to create a sense of luxury and celebrate the occasion.,
|
10 |
+
Create a dynamic stage set for ,a dance performance or recital. ,Use a neutral color palette ,"and a rustic, natural aesthetic.",LED screens and projection mapping,To create a vintage-inspired atmosphere.,Incorporate bright colors and playful patterns to highlight the dancers' energy and expressiveness.,
|
11 |
+
Design a captivating stage for ,a corporate event or conference. ,Featuring a vintage and retro-inspired aesthetic.,"and bold, avant-garde design elements.",Dramatic spotlighting,To create a cozy and intimate setting.,Incorporate high-tech displays and innovative lighting effects to showcase the latest in industry trends and technologies.,
|
12 |
+
Build an unforgettable stage for,a high-end car unveiling event with a futuristic aesthetic.,Use organic and natural design elements.,and vintage-inspired decor.,Subtle and understated lighting,To create a bold and edgy environment.,Use dynamic and innovative staging to create an immersive and captivating experience for the audience.,
|
13 |
+
Design a mesmerizing stage set for,a food and beverage festival with a focus on local cuisine.,Featuring a rustic and industrial feel,"and a futuristic, sci-fi-inspired design aesthetic.",Striking contrast between light and shadow ,To create a romantic and whimsical backdrop.,"Create a whimsical and enchanting stage set, featuring vibrant colors and fantastical elements.",
|
14 |
+
Create an otherworldly stage for,a wedding showcase event featuring elaborate floral arrangements and decor.,Use whimsical and playful design elements,"and a tropical, beachy vibe.",twinkling fairy lights and soft ambient lighting,To create a high-energy and vibrant atmosphere.,Incorporate stunning visual projections and intricate lighting effects to transport the audience to another world.,
|
15 |
+
Design an electrifying stage set for,a pop-up art exhibition featuring cutting-edge contemporary artists.,Featuring a high-end and luxurious atmosphere,and minimalist design elements.,neon and fluorescent lighting,To create a serene and peaceful setting.,"Use elegant and refined set design, along with luxurious decor and lighting, to create a sophisticated and upscale atmosphere.",
|
16 |
+
Build an enchanting stage for,a travel and tourism convention with immersive cultural experiences.,Use traditional and classic design elements,"and a high-tech, industrial aesthetic.",,To create a futuristic and otherworldly environment.,Incorporate playful and interactive elements to engage the audience and create a fun and memorable experience.,
|
17 |
+
,a wellness and self-care retreat featuring meditation and yoga classes.,Featuring a mystical and magical ambiance,"and ornate, intricate details.",,,Use dramatic and bold set design to create a sense of grandeur and awe.,
|
18 |
+
,a sports event with a dynamic and energetic atmosphere.,Use edgy and unconventional design elements,"and a cozy, intimate atmosphere.",,,Incorporate custom-built installations and intricate details to create a unique and unforgettable experience.,
|
19 |
+
,a music festival with multiple stages and immersive installations.,Featuring a cozy and intimate setting,,,,"Create a minimalist and sleek stage set, featuring clean lines and striking visual effects.",
|
20 |
+
,a holiday-themed pop-up market with festive decor and interactive experiences.,Use extravagant and opulent design elements,,,,Incorporate immersive 3D visual effects and interactive displays to showcase the product in a dynamic and engaging way.,
|
21 |
+
,a sustainable living expo with green technology and eco-friendly products.,,,,,Use avant-garde and experimental set design to create a cutting-edge and thought-provoking experience for the audience.,
|
22 |
+
,,,,,,Use avant-garde and experimental set design to create a cutting-edge and thought-provoking experience for the audience.,
|
volumetrics.csv
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
photo_style,setting,color_temperature,camera,depth_of_field,composition,environment,shadows,light_sources,effects,time,quality
|
2 |
+
scene featuring volumetric lighting,indoor setting,warm color temperature,Straight On,shallow depth of field,dynamic composition,minimalist environment,hard shadows,natural light sources,fog effects,morning time of day,4K --ar 16:9
|
3 |
+
,outdoor setting,cool color temperature,Low angle,deep depth of field,static composition,busy environment,soft shadows,artificial light sources,smoke effects,night time of day,
|
4 |
+
,Abandoned warehouse,neutral color temperature,High angle,variable depth of field,balanced composition,industrial environment,diffuse shadows,colorful light sources,mist effects,afternoon time of day,
|
5 |
+
,Rooftop garden,,Wide shot,,asymmetrical composition,,,monochromatic light sources,rain effects,evening time of day,
|
6 |
+
,Forest clearing,,Close-up,,,,,,snow effects,night time of day,
|
7 |
+
,Urban alleyway,,Extreme close-up,,,,,,sand effects,sunset time of the day,
|
8 |
+
,Beach boardwalk,,Panoramic shot,,,,,,,golden hour time of the day,
|
9 |
+
,Gothic cathedral,,Dutch angle,,,,,,,,
|
10 |
+
,Industrial factory,,Eye level,,,,,,,,
|
11 |
+
,Contemporary art museum,,Oblique Angle,,,,,,,,
|
12 |
+
,Ancient ruins,,Bird's Eye View,,,,,,,,
|
13 |
+
,City skyline,,Off-Center,,,,,,,,
|
14 |
+
,western scene,,,,,,,,,,
|
15 |
+
,outerspace scene,,,,,,,,,,
|
16 |
+
,futuristic scene,,,,,,,,,,
|