ford442 commited on
Commit
de575f0
Β·
1 Parent(s): 127e10f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -27,6 +27,14 @@ import time
27
  #os.system("./cusparselt.sh")
28
  #os.system("chmod +x ./cudnn.sh")
29
  #os.system("./cudnn.sh")
 
 
 
 
 
 
 
 
30
 
31
  torch.backends.cuda.matmul.allow_tf32 = False
32
  torch.backends.cuda.matmul.allow_bf16_reduced_precision_reduction = False
@@ -273,7 +281,7 @@ def load_predefined_images1():
273
  ]
274
  return predefined_images1
275
 
276
- with gr.Blocks(css=css) as demo:
277
  gr.Markdown(DESCRIPTIONXX)
278
  with gr.Row():
279
  prompt = gr.Text(
@@ -465,7 +473,6 @@ if __name__ == "__main__":
465
  outputs=gr.Textbox(label="Text Generated"),
466
  title=title,
467
  description=description,
468
- theme="huggingface"
469
  )
470
 
471
  combined_interface = gr.TabbedInterface([demo_interface, text_gen_interface], ["Image Generation", "Text Generation"])
 
27
  #os.system("./cusparselt.sh")
28
  #os.system("chmod +x ./cudnn.sh")
29
  #os.system("./cudnn.sh")
30
+ from gradio import themes
31
+
32
+ my_theme = themes.Theme(
33
+ background_color="#f0f0f0", # Set background color
34
+ primary_hue="purple", # Set primary color hue
35
+ font=["Arial", "sans-serif"], # Set font family
36
+ # ... other customizations ...
37
+ )
38
 
39
  torch.backends.cuda.matmul.allow_tf32 = False
40
  torch.backends.cuda.matmul.allow_bf16_reduced_precision_reduction = False
 
281
  ]
282
  return predefined_images1
283
 
284
+ with gr.Blocks(theme="dark") as demo:
285
  gr.Markdown(DESCRIPTIONXX)
286
  with gr.Row():
287
  prompt = gr.Text(
 
473
  outputs=gr.Textbox(label="Text Generated"),
474
  title=title,
475
  description=description,
 
476
  )
477
 
478
  combined_interface = gr.TabbedInterface([demo_interface, text_gen_interface], ["Image Generation", "Text Generation"])