Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -259,7 +259,7 @@ def process_generate(fore, prompt, intensity, mode, refprompt, isrmbg, model_typ
|
|
| 259 |
|
| 260 |
# Select the endpoint based on the model type
|
| 261 |
if model_type == "anime":
|
| 262 |
-
api_endpoint = api #to change
|
| 263 |
elif model_type == "realistic":
|
| 264 |
api_endpoint = api
|
| 265 |
else:
|
|
@@ -511,7 +511,7 @@ with block:
|
|
| 511 |
mode.change(fn=update_value, inputs=mode, outputs=mode)
|
| 512 |
|
| 513 |
with gr.Column():
|
| 514 |
-
model_type = gr.Dropdown(choices=["
|
| 515 |
|
| 516 |
with gr.Column():
|
| 517 |
gr.HTML('''
|
|
|
|
| 259 |
|
| 260 |
# Select the endpoint based on the model type
|
| 261 |
if model_type == "anime":
|
| 262 |
+
api_endpoint = api #to change to api_anime
|
| 263 |
elif model_type == "realistic":
|
| 264 |
api_endpoint = api
|
| 265 |
else:
|
|
|
|
| 511 |
mode.change(fn=update_value, inputs=mode, outputs=mode)
|
| 512 |
|
| 513 |
with gr.Column():
|
| 514 |
+
model_type = gr.Dropdown(choices=["realistic","anime"], label="Model Type", value="realistic") # Adding the Dropdown for model selection
|
| 515 |
|
| 516 |
with gr.Column():
|
| 517 |
gr.HTML('''
|