Spaces:
Sleeping
Sleeping
File size: 985 Bytes
6150c31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
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()
|