awacke1 commited on
Commit
89932bb
·
1 Parent(s): 2246d61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -126,7 +126,11 @@ with gr.Blocks(css=css) as myface:
126
  with gr.Tab("Title"):
127
  gr.HTML("""<title>Prompt to Generate Image</title><div style="text-align: center; max-width: 1500px; margin: 0 auto;">
128
  <h1>Enter a Prompt in Textbox then click Generate Image</h1>""")
129
-
 
 
 
 
130
  with gr.Tab("Tools"):
131
  with gr.Tab("View"):
132
  with gr.Row():
@@ -193,7 +197,10 @@ with gr.Blocks(css=css) as myface:
193
 
194
  # Reasoning: Link functions to Gradio components 🎛️
195
  model_name1.change(set_model, inputs=model_name1, outputs=[output1])
196
- run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1])
 
 
 
197
 
198
  myface.queue(concurrency_count=200)
199
  myface.launch(inline=True, show_api=False, max_threads=400)
 
126
  with gr.Tab("Title"):
127
  gr.HTML("""<title>Prompt to Generate Image</title><div style="text-align: center; max-width: 1500px; margin: 0 auto;">
128
  <h1>Enter a Prompt in Textbox then click Generate Image</h1>""")
129
+ with gr.Row():
130
+ with gr.Column(scale=100):
131
+ # New addition: HTML component to hold download link
132
+ download_link = gr.HTML(label="Download Link")
133
+
134
  with gr.Tab("Tools"):
135
  with gr.Tab("View"):
136
  with gr.Row():
 
197
 
198
  # Reasoning: Link functions to Gradio components 🎛️
199
  model_name1.change(set_model, inputs=model_name1, outputs=[output1])
200
+ # run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1])
201
+ # Reasoning: Link functions to Gradio components 🎛️
202
+ run.click(send_it1, inputs=[magic1, model_name1, download_link], outputs=[output1])
203
+
204
 
205
  myface.queue(concurrency_count=200)
206
  myface.launch(inline=True, show_api=False, max_threads=400)