Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|