Spaces:
Sleeping
Sleeping
Commit
·
8a4d97a
1
Parent(s):
b5f9052
fix client typo
Browse files
app.py
CHANGED
@@ -203,7 +203,7 @@ def generate_base(subject, setting, ):
|
|
203 |
gr.Info("Generating story", duration=3)
|
204 |
response = client.chat_completion(messages, max_tokens=2048, seed=random.randint(1, 5000))
|
205 |
gr.Info("Story Generated", duration=3)
|
206 |
-
story = response.choices[0].content
|
207 |
|
208 |
play_steps_in_s = 2.0
|
209 |
play_steps = int(frame_rate * play_steps_in_s)
|
|
|
203 |
gr.Info("Generating story", duration=3)
|
204 |
response = client.chat_completion(messages, max_tokens=2048, seed=random.randint(1, 5000))
|
205 |
gr.Info("Story Generated", duration=3)
|
206 |
+
story = response.choices[0].message.content
|
207 |
|
208 |
play_steps_in_s = 2.0
|
209 |
play_steps = int(frame_rate * play_steps_in_s)
|