Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def get_random_world_description():
|
|
| 56 |
result = response.choices[0].message.content
|
| 57 |
if "</think>" in result:
|
| 58 |
result = result[result.index("</think>")+1:]
|
| 59 |
-
return result
|
| 60 |
|
| 61 |
def get_random_persona_description():
|
| 62 |
return ds.shuffle().select([100])[0]["persona"]
|
|
@@ -76,7 +76,7 @@ def infer_flux(character_json):
|
|
| 76 |
yield image
|
| 77 |
|
| 78 |
def generate_character(world_description, persona_description, progress=gr.Progress(track_tqdm=True)):
|
| 79 |
-
|
| 80 |
model="Qwen/Qwen3-235B-A22B",
|
| 81 |
messages=[
|
| 82 |
{
|
|
|
|
| 56 |
result = response.choices[0].message.content
|
| 57 |
if "</think>" in result:
|
| 58 |
result = result[result.index("</think>")+1:]
|
| 59 |
+
return result
|
| 60 |
|
| 61 |
def get_random_persona_description():
|
| 62 |
return ds.shuffle().select([100])[0]["persona"]
|
|
|
|
| 76 |
yield image
|
| 77 |
|
| 78 |
def generate_character(world_description, persona_description, progress=gr.Progress(track_tqdm=True)):
|
| 79 |
+
response = llm_client.chat.completions.create(
|
| 80 |
model="Qwen/Qwen3-235B-A22B",
|
| 81 |
messages=[
|
| 82 |
{
|