Spaces:
Sleeping
Sleeping
from utils import * | |
import openai | |
import os | |
import gradio as gr | |
# Generate the app using gradio, running dramatron which is in utils.py and has the outputs titulo, prem_ep, outline, chars, scenes, all_esc | |
demo = gr.Interface( | |
fn=dramatron, | |
# input | |
inputs= [gr.Textbox(label="Premisa Serie"), | |
gr.Textbox(label="Keywords")], | |
# output | |
outputs=[ | |
# title | |
gr.Textbox(label="Titulo"), | |
# episode premise | |
gr.Textbox(label="Premisa Episodio"), | |
# outline | |
gr.Textbox(label="Outline"), | |
# characters | |
gr.Textbox(label="Personajes"), | |
# scenes | |
gr.Textbox(label="Escenas"), | |
# all_esc | |
gr.Textbox(label="Escenas Completas") | |
], | |
title="Dramatrónico Pléxico", | |
description="Escribe la premisa de tu serie y las palabras clave que quieres que aparezcan en el episodio y Dramatron te generará un episodio completo.") | |
if __name__ == "__main__": | |
demo.launch() | |