artificialguybr commited on
Commit
04c9189
·
1 Parent(s): 4862b5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,7 +16,7 @@ def query(payload, api_url, token):
16
  return io.BytesIO(response.content)
17
 
18
  # Gradio UI
19
- with gr.Blocks(css="custom.css") as demo:
20
  title = gr.HTML(
21
  """<h1><img src="https://i.imgur.com/vT48NAO.png" alt="LoRA"> LoRA the Explorer</h1>""",
22
  elem_id="title",
@@ -49,8 +49,8 @@ with gr.Blocks(css="custom.css") as demo:
49
  return Image.open(image_bytes)
50
 
51
  print("Starting Gradio UI...")
52
- prompt.submit(
53
  fn=run_lora,
54
  inputs=[prompt, weight, selected_state],
55
  outputs=[result],
56
- )
 
16
  return io.BytesIO(response.content)
17
 
18
  # Gradio UI
19
+ with gr.Blocks() as demo: # Removed the css argument
20
  title = gr.HTML(
21
  """<h1><img src="https://i.imgur.com/vT48NAO.png" alt="LoRA"> LoRA the Explorer</h1>""",
22
  elem_id="title",
 
49
  return Image.open(image_bytes)
50
 
51
  print("Starting Gradio UI...")
52
+ gr.Interface(
53
  fn=run_lora,
54
  inputs=[prompt, weight, selected_state],
55
  outputs=[result],
56
+ ).launch()