Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,33 +53,34 @@ def chat_with_model(user_input, hf_api_key):
|
|
53 |
except Exception as e:
|
54 |
return f"Error: {e}"
|
55 |
|
56 |
-
# Create the Gradio interface with a
|
57 |
with gr.Blocks(
|
58 |
css="""
|
59 |
body {
|
60 |
-
background-color: #
|
61 |
-
color: #
|
62 |
}
|
63 |
.gradio-container {
|
64 |
-
background-color: #
|
|
|
65 |
}
|
66 |
.gradio-container input, .gradio-container textarea, .gradio-container button {
|
67 |
-
color: #
|
68 |
-
background-color: #
|
69 |
-
border: 1px solid #
|
70 |
}
|
71 |
.gradio-container textarea::placeholder, .gradio-container input::placeholder {
|
72 |
-
color: #
|
73 |
}
|
74 |
.gradio-container button {
|
75 |
-
background-color: #
|
76 |
-
border: 1px solid #
|
77 |
}
|
78 |
.gradio-container button:hover {
|
79 |
-
background-color: #
|
80 |
}
|
81 |
#title, #description {
|
82 |
-
color: #
|
83 |
}
|
84 |
"""
|
85 |
) as demo:
|
|
|
53 |
except Exception as e:
|
54 |
return f"Error: {e}"
|
55 |
|
56 |
+
# Create the Gradio interface with a light theme and black text
|
57 |
with gr.Blocks(
|
58 |
css="""
|
59 |
body {
|
60 |
+
background-color: #f9f9f9;
|
61 |
+
color: #000000;
|
62 |
}
|
63 |
.gradio-container {
|
64 |
+
background-color: #ffffff;
|
65 |
+
color: #000000;
|
66 |
}
|
67 |
.gradio-container input, .gradio-container textarea, .gradio-container button {
|
68 |
+
color: #000000;
|
69 |
+
background-color: #ffffff;
|
70 |
+
border: 1px solid #cccccc;
|
71 |
}
|
72 |
.gradio-container textarea::placeholder, .gradio-container input::placeholder {
|
73 |
+
color: #777777;
|
74 |
}
|
75 |
.gradio-container button {
|
76 |
+
background-color: #f0f0f0;
|
77 |
+
border: 1px solid #cccccc;
|
78 |
}
|
79 |
.gradio-container button:hover {
|
80 |
+
background-color: #e6e6e6;
|
81 |
}
|
82 |
#title, #description {
|
83 |
+
color: #000000 !important;
|
84 |
}
|
85 |
"""
|
86 |
) as demo:
|