fantaxy commited on
Commit
b8e1aa4
1 Parent(s): c97f523

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -39,13 +39,20 @@ def respond(message):
39
  logging.error("Error during API request: %s", str(e))
40
  return "Failed to generate image due to an error."
41
 
 
 
 
 
 
 
42
  # Gradio 인터페이스 설정
43
  demo = gr.Interface(
44
  fn=respond,
45
  inputs=gr.Textbox(label="Enter your prompt for image generation"),
46
  outputs=gr.Image(label="Generated Image"),
47
- theme="Nymbo/Nymbo_Theme"
 
48
  )
49
 
50
  if __name__ == "__main__":
51
- demo.launch()
 
39
  logging.error("Error during API request: %s", str(e))
40
  return "Failed to generate image due to an error."
41
 
42
+ css = """
43
+ footer {
44
+ visibility: hidden;
45
+ }
46
+ """
47
+
48
  # Gradio 인터페이스 설정
49
  demo = gr.Interface(
50
  fn=respond,
51
  inputs=gr.Textbox(label="Enter your prompt for image generation"),
52
  outputs=gr.Image(label="Generated Image"),
53
+ theme="Nymbo/Nymbo_Theme",
54
+ css=css
55
  )
56
 
57
  if __name__ == "__main__":
58
+ demo.launch()