artificialguybr commited on
Commit
10fbca6
1 Parent(s): bf71179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -25,6 +25,7 @@ def run_lora(prompt):
25
  image_bytes = query(payload, api_url, token)
26
  return Image.open(image_bytes)
27
 
 
28
  # Gradio UI
29
  print("Before Gradio Interface")
30
 
@@ -40,10 +41,10 @@ with gr.Blocks(css="custom.css") as app:
40
  result = gr.Image(interactive=False, label="Generated Image")
41
 
42
  with gr.Row():
43
- with gr.Column(width=6): # Adjusting the width
44
  title
45
  gallery
46
- with gr.Column(width=6): # Adjusting the width
47
  prompt
48
  gr.Button("Run").click(
49
  fn=run_lora,
@@ -54,5 +55,5 @@ with gr.Blocks(css="custom.css") as app:
54
 
55
  print("After Gradio Interface")
56
 
57
- # Launch the Gradio interface with a queue
58
- app.launch(debug=True)
 
25
  image_bytes = query(payload, api_url, token)
26
  return Image.open(image_bytes)
27
 
28
+
29
  # Gradio UI
30
  print("Before Gradio Interface")
31
 
 
41
  result = gr.Image(interactive=False, label="Generated Image")
42
 
43
  with gr.Row():
44
+ with gr.Column(): # Removed the width parameter
45
  title
46
  gallery
47
+ with gr.Column(): # Removed the width parameter
48
  prompt
49
  gr.Button("Run").click(
50
  fn=run_lora,
 
55
 
56
  print("After Gradio Interface")
57
 
58
+ # Launch the Gradio interface with a queue and specify the width here
59
+ app.launch(debug=True, layout=("100%", "100%")) # Added layout parameter