Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def get_client(model_name):
|
|
9 |
|
10 |
# Function to generate the image based on selected model and prompt
|
11 |
def generate_image(prompt, model_name):
|
12 |
-
client = get_client(
|
13 |
response = client.text_to_image(prompt, guidance_scale=7.5)
|
14 |
return response
|
15 |
|
|
|
9 |
|
10 |
# Function to generate the image based on selected model and prompt
|
11 |
def generate_image(prompt, model_name):
|
12 |
+
client = get_client(model_name)
|
13 |
response = client.text_to_image(prompt, guidance_scale=7.5)
|
14 |
return response
|
15 |
|