Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
73 |
if enhance_prompt_option:
|
74 |
prompt = enhance_prompt(prompt)
|
75 |
print(f'\033[1mGeneration {key} enhanced prompt:\033[0m {prompt}')
|
76 |
-
|
77 |
prompt = mistral_nemo_call(prompt)
|
78 |
print(f'\033[1mGeneration {key} Mistral-Nemo prompt:\033[0m {prompt}')
|
79 |
|
@@ -203,7 +203,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
203 |
huggingface_api_key = gr.Textbox(label="Hugging Face API Key (required for API calls)", placeholder="Enter your Hugging Face API Key here", type="password", elem_id="api-key")
|
204 |
use_dev = gr.Checkbox(label="Use Dev API", value=False, elem_id="use-dev-checkbox")
|
205 |
enhance_prompt_option = gr.Checkbox(label="Enhance Prompt", value=False, elem_id="enhance-prompt-checkbox")
|
206 |
-
|
207 |
with gr.Row():
|
208 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
209 |
with gr.Row():
|
|
|
73 |
if enhance_prompt_option:
|
74 |
prompt = enhance_prompt(prompt)
|
75 |
print(f'\033[1mGeneration {key} enhanced prompt:\033[0m {prompt}')
|
76 |
+
if use_mistral_nemo:
|
77 |
prompt = mistral_nemo_call(prompt)
|
78 |
print(f'\033[1mGeneration {key} Mistral-Nemo prompt:\033[0m {prompt}')
|
79 |
|
|
|
203 |
huggingface_api_key = gr.Textbox(label="Hugging Face API Key (required for API calls)", placeholder="Enter your Hugging Face API Key here", type="password", elem_id="api-key")
|
204 |
use_dev = gr.Checkbox(label="Use Dev API", value=False, elem_id="use-dev-checkbox")
|
205 |
enhance_prompt_option = gr.Checkbox(label="Enhance Prompt", value=False, elem_id="enhance-prompt-checkbox")
|
206 |
+
use_mistral_nemo = gr.Checkbox(label="Use Mistral Nemo", value=False, elem_id="use-mistral-checkbox")
|
207 |
with gr.Row():
|
208 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
209 |
with gr.Row():
|