Spaces:
Runtime error
Runtime error
| <html> | |
| <head> | |
| <title>Sentence to SQL App</title> | |
| <style> | |
| body { | |
| text-align: center; | |
| } | |
| h1 { | |
| margin-bottom: 20px; | |
| } | |
| textarea { | |
| width: 70%; | |
| height: 150px; | |
| resize: vertical; | |
| padding: 10px; | |
| } | |
| button { | |
| margin-top: 10px; | |
| } | |
| h2 { | |
| margin-top: 20px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Sentence to SQL App</h1> | |
| <form method="POST" action="/predict"> | |
| <textarea name="input_text" rows="4" cols="50" placeholder="Enter a sentence"></textarea> | |
| <br> | |
| <button type="submit">Predict SQL</button> | |
| </form> | |
| <br> | |
| {% if predicted_sql %} | |
| <h2>Predicted SQL Query:</h2> | |
| <p>{{ predicted_sql }}</p> | |
| {% endif %} | |
| </body> | |
| </html> | |