Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def generate_pdf(itinerary_text):
|
|
| 127 |
|
| 128 |
styles = getSampleStyleSheet()
|
| 129 |
style = styles["Normal"]
|
| 130 |
-
style.fontName = "
|
| 131 |
style.fontSize = 10
|
| 132 |
style.leading = 14
|
| 133 |
|
|
@@ -149,11 +149,11 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="teal", secondary_hue="teal")
|
|
| 149 |
header_html = """
|
| 150 |
<style>
|
| 151 |
@keyframes colorCycle {
|
| 152 |
-
0%
|
| 153 |
-
25%
|
| 154 |
-
50%
|
| 155 |
-
75%
|
| 156 |
-
100% { color: #
|
| 157 |
}
|
| 158 |
.color-cycle { animation: colorCycle 4s infinite; }
|
| 159 |
.tagline { font-style: italic; color: #007777; font-size: 18px; margin-top: 4px; }
|
|
@@ -173,7 +173,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="teal", secondary_hue="teal")
|
|
| 173 |
|
| 174 |
with gr.Row():
|
| 175 |
budget = gr.Dropdown(["Low", "Medium", "High", "Any"], label="Budget", value="Any", info="Choose your budget level")
|
| 176 |
-
days = gr.Slider(1,
|
| 177 |
|
| 178 |
generate_btn = gr.Button("✨ Generate Itinerary", variant="primary")
|
| 179 |
|
|
|
|
| 127 |
|
| 128 |
styles = getSampleStyleSheet()
|
| 129 |
style = styles["Normal"]
|
| 130 |
+
style.fontName = "Times-Roman"
|
| 131 |
style.fontSize = 10
|
| 132 |
style.leading = 14
|
| 133 |
|
|
|
|
| 149 |
header_html = """
|
| 150 |
<style>
|
| 151 |
@keyframes colorCycle {
|
| 152 |
+
0% { color: #004d4d; } /* darker teal */
|
| 153 |
+
25% { color: #00b3b3; } /* bright cyan teal */
|
| 154 |
+
50% { color: #40e0d0; } /* turquoise */
|
| 155 |
+
75% { color: #007777; } /* medium teal */
|
| 156 |
+
100% { color: #004d4d; }
|
| 157 |
}
|
| 158 |
.color-cycle { animation: colorCycle 4s infinite; }
|
| 159 |
.tagline { font-style: italic; color: #007777; font-size: 18px; margin-top: 4px; }
|
|
|
|
| 173 |
|
| 174 |
with gr.Row():
|
| 175 |
budget = gr.Dropdown(["Low", "Medium", "High", "Any"], label="Budget", value="Any", info="Choose your budget level")
|
| 176 |
+
days = gr.Slider(1, 10, value=5, step=1, label="Days", info="Number of days for the itinerary")
|
| 177 |
|
| 178 |
generate_btn = gr.Button("✨ Generate Itinerary", variant="primary")
|
| 179 |
|