Update app.py
Browse files
app.py
CHANGED
|
@@ -97,34 +97,8 @@ Format your answer with clear headings and subheadings. Use markdown formatting
|
|
| 97 |
except Exception as e:
|
| 98 |
return f"Error: {str(e)}"
|
| 99 |
|
| 100 |
-
# Create a Gradio interface
|
| 101 |
-
with gr.Blocks(title="Competitive Programming Assistant", theme=gr.themes.
|
| 102 |
-
# Adding custom CSS for dark mode
|
| 103 |
-
app.css = """
|
| 104 |
-
.gradio-container {
|
| 105 |
-
background-color: #181818;
|
| 106 |
-
color: white;
|
| 107 |
-
}
|
| 108 |
-
.gradio-row, .gradio-column {
|
| 109 |
-
color: white;
|
| 110 |
-
}
|
| 111 |
-
.gradio-button {
|
| 112 |
-
background-color: #3a3a3a;
|
| 113 |
-
color: white;
|
| 114 |
-
}
|
| 115 |
-
.gradio-markdown {
|
| 116 |
-
color: white;
|
| 117 |
-
}
|
| 118 |
-
.gradio-input {
|
| 119 |
-
background-color: #333333;
|
| 120 |
-
color: white;
|
| 121 |
-
border-color: #444444;
|
| 122 |
-
}
|
| 123 |
-
.gradio-input:focus {
|
| 124 |
-
border-color: #6a6a6a;
|
| 125 |
-
}
|
| 126 |
-
"""
|
| 127 |
-
|
| 128 |
gr.Markdown("""
|
| 129 |
# 🏆 Competitive Programming Assistant
|
| 130 |
|
|
|
|
| 97 |
except Exception as e:
|
| 98 |
return f"Error: {str(e)}"
|
| 99 |
|
| 100 |
+
# Create a Gradio interface
|
| 101 |
+
with gr.Blocks(title="Competitive Programming Assistant", theme=gr.themes.Soft()) as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
gr.Markdown("""
|
| 103 |
# 🏆 Competitive Programming Assistant
|
| 104 |
|