Alfasign commited on
Commit
c9dd36b
1 Parent(s): e907b53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -19,6 +19,16 @@ def generate_text(prompt, style):
19
 
20
  styles = ["eine formelle E-Mail", "eine Kurzgeschichte", "ein Gedicht", "ein wissenschaftlicher Bericht", "eine Zeitungsartikel"]
21
 
22
- iface = gr.Interface(fn=generate_text, inputs=["textbox", gr.inputs.Dropdown(choices=styles)], outputs="text")
23
- iface.launch()
 
 
 
 
 
 
 
 
24
 
 
 
 
19
 
20
  styles = ["eine formelle E-Mail", "eine Kurzgeschichte", "ein Gedicht", "ein wissenschaftlicher Bericht", "eine Zeitungsartikel"]
21
 
22
+ css = """
23
+ body {
24
+ background-color: #f0f0f0;
25
+ color: #333;
26
+ }
27
+ .gradio-input, .gradio-output {
28
+ background-color: #fff;
29
+ color: #333;
30
+ }
31
+ """
32
 
33
+ iface = gr.Interface(fn=generate_text, inputs=["textbox", gr.inputs.Dropdown(choices=styles)], outputs="text", css=css)
34
+ iface.launch()