zenafey commited on
Commit
7c71fe1
1 Parent(s): 921fc92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -47,7 +47,7 @@ def infer(prompt, seed=42, randomize_seed=False, resolution="1024x1024", guidanc
47
 
48
  generative_api = APIClient()
49
 
50
- with open("header.html", "r") as file:
51
  header = file.read()
52
 
53
  examples = [
@@ -67,29 +67,12 @@ css="""
67
  margin: 0 auto;
68
  border-radius: 0px;
69
  }
70
-
71
- .is-custom-button {
72
- background-color: #3a4454;
73
- border-color: #4b5563;
74
- }
75
-
76
- @media (prefers-color-scheme: light) {
77
- .is-custom-button {
78
- background-color: #f3f4f6;
79
- border-color: #e5e7eb;
80
- }
81
- }
82
-
83
  """
84
 
85
  with gr.Blocks(css=css) as demo:
86
 
87
  with gr.Column(elem_id="col-container"):
88
- gr.Markdown(f"""# Fast FLUX.1 [dev]
89
- 12B param rectified flow transformer guidance-distilled from [FLUX.1 [pro]](https://blackforestlabs.ai/)
90
- [[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)]
91
- """)
92
- gr.HTML(header)
93
  with gr.Row():
94
 
95
  prompt = gr.Text(
 
47
 
48
  generative_api = APIClient()
49
 
50
+ with open("header.md", "r") as file:
51
  header = file.read()
52
 
53
  examples = [
 
67
  margin: 0 auto;
68
  border-radius: 0px;
69
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  """
71
 
72
  with gr.Blocks(css=css) as demo:
73
 
74
  with gr.Column(elem_id="col-container"):
75
+ gr.Markdown(header)
 
 
 
 
76
  with gr.Row():
77
 
78
  prompt = gr.Text(