Fixed html.

This commit is contained in:
Patrick_Pluto 2024-09-16 13:38:30 +02:00
parent 4cbb44b9fc
commit e3cdde8a74
3 changed files with 8 additions and 6 deletions

View file

@ -2,6 +2,7 @@ import requests
import json import json
from transformers import AutoTokenizer, LlamaForCausalLM from transformers import AutoTokenizer, LlamaForCausalLM
class API: class API:
@staticmethod @staticmethod
def process_text_transformers(prompt, model): def process_text_transformers(prompt, model):

View file

@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="/static/styles.css">
<title>AI Assistant</title> <title>AI Assistant</title>
</head> </head>
@ -81,7 +81,7 @@
<!-- Input section: Where user input is provided --> <!-- Input section: Where user input is provided -->
<div class="input"> <div class="input">
<input type="text" placeholder="Type your message here..." /> <input type="text" placeholder="Type your message here..." />
<button><img src="img/microphone.svg" alt="microphone"></button> <button><img src="/static/img/microphone.svg" alt="microphone"></button>
<button>Send</button> <button>Send</button>
</div> </div>
</div> </div>

View file

@ -1,4 +1,4 @@
from flask import Flask from flask import Flask, send_from_directory
app = Flask(__name__) app = Flask(__name__)
@ -7,5 +7,6 @@ app = Flask(__name__)
def index(): def index():
return app.send_static_file('index.html') return app.send_static_file('index.html')
if __name__ == '__main__': if __name__ == '__main__':
app.run() app.run(debug=True)