Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ with gr.Blocks(css=css) as myface:
|
|
164 |
|
165 |
with gr.Row():
|
166 |
with gr.Column():
|
167 |
-
|
168 |
#Model selection dropdown
|
169 |
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
170 |
with gr.Column():
|
@@ -207,23 +207,23 @@ with gr.Blocks(css=css) as myface:
|
|
207 |
run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
|
208 |
run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
|
209 |
|
210 |
-
use_short.click(short_prompt,inputs=[
|
211 |
-
use_short.click(short_prompt,inputs=[
|
212 |
-
use_short.click(short_prompt,inputs=[
|
213 |
-
use_short.click(short_prompt,inputs=[
|
214 |
-
use_short.click(short_prompt,inputs=[
|
215 |
-
use_short.click(short_prompt,inputs=[
|
216 |
-
use_short.click(short_prompt,inputs=[
|
217 |
-
use_short.click(short_prompt,inputs=[
|
218 |
|
219 |
-
see_prompts.click(text_it1,inputs=[
|
220 |
-
see_prompts.click(text_it2,inputs=[
|
221 |
-
see_prompts.click(text_it3,inputs=[
|
222 |
-
see_prompts.click(text_it4,inputs=[
|
223 |
-
see_prompts.click(text_it5,inputs=[
|
224 |
-
see_prompts.click(text_it6,inputs=[
|
225 |
-
see_prompts.click(text_it7,inputs=[
|
226 |
-
see_prompts.click(text_it8,inputs=[
|
227 |
|
228 |
|
229 |
|
|
|
164 |
|
165 |
with gr.Row():
|
166 |
with gr.Column():
|
167 |
+
prompt=gr.Textbox(label="Prompt", show_label=False, lines=2,placeholder="[your prompt]").style(container=False)
|
168 |
#Model selection dropdown
|
169 |
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
170 |
with gr.Column():
|
|
|
207 |
run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
|
208 |
run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
|
209 |
|
210 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
211 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic2)
|
212 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic3)
|
213 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic4)
|
214 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic5)
|
215 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic6)
|
216 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic7)
|
217 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic8)
|
218 |
|
219 |
+
see_prompts.click(text_it1,inputs=[prompt],outputs=magic1)
|
220 |
+
see_prompts.click(text_it2,inputs=[prompt],outputs=magic2)
|
221 |
+
see_prompts.click(text_it3,inputs=[prompt],outputs=magic3)
|
222 |
+
see_prompts.click(text_it4,inputs=[prompt],outputs=magic4)
|
223 |
+
see_prompts.click(text_it5,inputs=[prompt],outputs=magic5)
|
224 |
+
see_prompts.click(text_it6,inputs=[prompt],outputs=magic6)
|
225 |
+
see_prompts.click(text_it7,inputs=[prompt],outputs=magic7)
|
226 |
+
see_prompts.click(text_it8,inputs=[prompt],outputs=magic8)
|
227 |
|
228 |
|
229 |
|