Spaces:
Sleeping
Sleeping
HI
Browse files
app.py
CHANGED
|
@@ -36,6 +36,24 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
|
|
| 36 |
response+=token
|
| 37 |
yield response
|
| 38 |
#return respond.choices[0].message.content.strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
quotes = [
|
| 40 |
"Something is better than nothing",
|
| 41 |
"Consistency, consistency, consistency",
|
|
@@ -44,13 +62,15 @@ quotes = [
|
|
| 44 |
]
|
| 45 |
random.seed(str(date.today()))
|
| 46 |
daily_quote = random.choice(quotes)
|
| 47 |
-
|
| 48 |
with gr.Blocks() as demo:
|
| 49 |
gr.Markdown(f"""
|
| 50 |
## 🌟 Daily Motivation
|
| 51 |
|
| 52 |
*"{daily_quote}"*
|
| 53 |
""")
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
gr.ChatInterface(respond)
|
| 56 |
|
|
|
|
| 36 |
response+=token
|
| 37 |
yield response
|
| 38 |
#return respond.choices[0].message.content.strip()
|
| 39 |
+
|
| 40 |
+
menu_data = [
|
| 41 |
+
{
|
| 42 |
+
"type": "group",
|
| 43 |
+
"label": "STEAM",
|
| 44 |
+
"children": [
|
| 45 |
+
{"id": "scholarships", "label": "Scholarships"},
|
| 46 |
+
{"id": "internships", "label": "Internships"}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"type": "item",
|
| 51 |
+
"id": "tracker",
|
| 52 |
+
"label": "Progress Tracker"
|
| 53 |
+
}
|
| 54 |
+
]
|
| 55 |
+
|
| 56 |
+
#QU0TE
|
| 57 |
quotes = [
|
| 58 |
"Something is better than nothing",
|
| 59 |
"Consistency, consistency, consistency",
|
|
|
|
| 62 |
]
|
| 63 |
random.seed(str(date.today()))
|
| 64 |
daily_quote = random.choice(quotes)
|
|
|
|
| 65 |
with gr.Blocks() as demo:
|
| 66 |
gr.Markdown(f"""
|
| 67 |
## 🌟 Daily Motivation
|
| 68 |
|
| 69 |
*"{daily_quote}"*
|
| 70 |
""")
|
| 71 |
+
#THING
|
| 72 |
+
sidebar = SidebarMenu(menu_data)
|
| 73 |
+
|
| 74 |
|
| 75 |
gr.ChatInterface(respond)
|
| 76 |
|