nagasurendra commited on
Commit
5914ab2
·
verified ·
1 Parent(s): c3d7c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -2
app.py CHANGED
@@ -20,14 +20,52 @@ html_code = """
20
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
21
  <title>AI Dining Assistant</title>
22
  <style>
23
- /* Your CSS styles here */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  </style>
25
  </head>
26
  <body>
27
  <h1>AI Dining Assistant</h1>
28
  <button class="mic-button" id="mic-button">🎤</button>
29
  <div class="status" id="status">Press the mic button to start...</div>
30
- <div class="response" id="response" style="display: none;">Response will appear here...</div>
31
  <script>
32
  const micButton = document.getElementById('mic-button');
33
  const status = document.getElementById('status');
 
20
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
21
  <title>AI Dining Assistant</title>
22
  <style>
23
+ body {
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: center;
27
+ justify-content: center;
28
+ min-height: 100vh;
29
+ margin: 0;
30
+ font-family: Arial, sans-serif;
31
+ background-color: #f4f4f9;
32
+ }
33
+ h1 {
34
+ color: #333;
35
+ }
36
+ .mic-button {
37
+ font-size: 2rem;
38
+ padding: 1rem 2rem;
39
+ color: white;
40
+ background-color: #007bff;
41
+ border: none;
42
+ border-radius: 50px;
43
+ cursor: pointer;
44
+ transition: background-color 0.3s;
45
+ }
46
+ .mic-button:hover {
47
+ background-color: #0056b3;
48
+ }
49
+ .status, .response {
50
+ margin-top: 1rem;
51
+ text-align: center;
52
+ color: #555;
53
+ font-size: 1.2rem;
54
+ }
55
+ .response {
56
+ background-color: #e8e8ff;
57
+ padding: 1rem;
58
+ border-radius: 10px;
59
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
60
+ display: none;
61
+ }
62
  </style>
63
  </head>
64
  <body>
65
  <h1>AI Dining Assistant</h1>
66
  <button class="mic-button" id="mic-button">🎤</button>
67
  <div class="status" id="status">Press the mic button to start...</div>
68
+ <div class="response" id="response">Response will appear here...</div>
69
  <script>
70
  const micButton = document.getElementById('mic-button');
71
  const status = document.getElementById('status');