Spaces:
Runtime error
Runtime error
SoSa123456
commited on
Commit
•
677a99e
1
Parent(s):
2c0e509
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def generate_script(host_name, listener_location, causes_climate_change, co2_lev
|
|
26 |
TOPIC: {TOPIC}. DESCRIPTION: {DESCRIPTION}"""
|
27 |
|
28 |
# Generate the script using the language model
|
29 |
-
script = generator.text_generation(prompt_template
|
30 |
|
31 |
# Split the script into sections
|
32 |
sections = script.split("\n")
|
|
|
26 |
TOPIC: {TOPIC}. DESCRIPTION: {DESCRIPTION}"""
|
27 |
|
28 |
# Generate the script using the language model
|
29 |
+
script = generator.text_generation(prompt_template)[0]['generated_text']
|
30 |
|
31 |
# Split the script into sections
|
32 |
sections = script.split("\n")
|