Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,6 @@ def generate_improv_scene(api_key):
|
|
| 25 |
# Return the desired elements as a tuple
|
| 26 |
return dialogue, emotion, situation, location, relationship, occupation
|
| 27 |
|
| 28 |
-
@spaces.use(gr.Interface)
|
| 29 |
-
|
| 30 |
# Create Gradio UI
|
| 31 |
iface = gr.Interface(
|
| 32 |
fn=generate_improv_scene,
|
|
@@ -37,4 +35,4 @@ iface = gr.Interface(
|
|
| 37 |
description="Generate a random improv scene with dialogue, emotion, situation, location, relationship, and occupation."
|
| 38 |
)
|
| 39 |
|
| 40 |
-
iface.launch()
|
|
|
|
| 25 |
# Return the desired elements as a tuple
|
| 26 |
return dialogue, emotion, situation, location, relationship, occupation
|
| 27 |
|
|
|
|
|
|
|
| 28 |
# Create Gradio UI
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=generate_improv_scene,
|
|
|
|
| 35 |
description="Generate a random improv scene with dialogue, emotion, situation, location, relationship, and occupation."
|
| 36 |
)
|
| 37 |
|
| 38 |
+
iface.launch()
|