Blessin commited on
Commit
43f25a7
·
1 Parent(s): 338a195

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,13 +36,13 @@ def generate_scene_descriptions(api_key, theme, story):
36
  iface = gr.Interface(
37
  fn=generate_scene_descriptions,
38
  inputs=[
 
39
  gr.Textbox(label="Thematic Area", placeholder="Enter a thematic area, e.g., Climate Crisis"), # Thematic area input
40
  gr.Textbox(label="Story (Optional)", placeholder="Enter a story to base the scenes on (optional)", optional=True) # Optional story input
41
- gr.Textbox(label="Your OpenAI API Key", type="password", placeholder="Enter your OpenAI API Key here"), # Secure API key input
42
  ],
43
  outputs="text", # The output is a text field
44
- title="Scene Generator", # Title of the Gradio app
45
- description="This app generates structured scene descriptions for multiple scenes of a video ." # Description for the Gradio app
46
  )
47
 
48
  # Launch the interface locally for testing
 
36
  iface = gr.Interface(
37
  fn=generate_scene_descriptions,
38
  inputs=[
39
+ gr.Textbox(label="Your OpenAI API Key", type="password", placeholder="Enter your OpenAI API Key here"), # Secure API key input
40
  gr.Textbox(label="Thematic Area", placeholder="Enter a thematic area, e.g., Climate Crisis"), # Thematic area input
41
  gr.Textbox(label="Story (Optional)", placeholder="Enter a story to base the scenes on (optional)", optional=True) # Optional story input
 
42
  ],
43
  outputs="text", # The output is a text field
44
+ title="Multi-Scene Generator", # Title of the Gradio app
45
+ description="This app generates structured scene descriptions for multiple scenes of a video based on the given thematic area and optional story input using GPT-3.5." # Description for the Gradio app
46
  )
47
 
48
  # Launch the interface locally for testing