Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chatbot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
option3a
chatbot
Commits
78bee6ac
Commit
78bee6ac
authored
Jan 30, 2024
by
Tiravy Amaury
Browse files
Options
Downloads
Patches
Plain Diff
bonne_police
parent
50f88983
Branches
Branches containing commit
No related tags found
1 merge request
!6
Test amau
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
chatbot.png
+0
-0
0 additions, 0 deletions
chatbot.png
chatbot_complet.py
+4
-8
4 additions, 8 deletions
chatbot_complet.py
with
4 additions
and
8 deletions
chatbot.png
0 → 100644
+
0
−
0
View file @
78bee6ac
3.42 KiB
This diff is collapsed.
Click to expand it.
visuel
.py
→
chatbot_complet
.py
+
4
−
8
View file @
78bee6ac
import
sys
from
PyQt5.QtWidgets
import
QApplication
,
QWidget
,
QHBoxLayout
,
QVBoxLayout
,
QTextEdit
,
QLineEdit
,
QPushButton
,
QSizePolicy
,
QListWidget
,
QListWidgetItem
,
QLabel
from
PyQt5.QtCore
import
Qt
from
PyQt5.QtGui
import
QPalette
,
QColor
,
QFont
from
PyQt5.QtGui
import
QPixmap
from
PyQt5.QtGui
import
QPalette
,
QColor
,
QFont
,
QIcon
from
sklearn.feature_extraction.text
import
TfidfVectorizer
from
sklearn.metrics.pairwise
import
cosine_similarity
import
numpy
as
np
...
...
@@ -142,7 +141,9 @@ class ChatbotInterface(QWidget):
self
.
conversation_text
.
setSizePolicy
(
size_policy
)
# Définir la fenêtre principale
self
.
setWindowTitle
(
'
Chatbot Interface
'
)
icon
=
QIcon
(
"
chatbot.png
"
)
# Remplacez par le chemin de votre icône
self
.
setWindowIcon
(
icon
)
self
.
setWindowTitle
(
'
chatbot
'
)
self
.
setGeometry
(
100
,
100
,
800
,
600
)
# Appliquer les styles
...
...
@@ -196,11 +197,6 @@ class ChatbotInterface(QWidget):
else
:
pass
def
set_logo
(
self
,
image_path
):
pixmap
=
QPixmap
(
image_path
)
self
.
logo_label
.
setPixmap
(
pixmap
)
self
.
logo_label
.
setScaledContents
(
True
)
def
update_history_list
(
self
):
self
.
history_list_widget
.
clear
()
for
command
in
self
.
command_history
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment