Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added chatbot_files.zip
Binary file not shown.
Binary file added chatbot_updates.zip
Binary file not shown.
1 change: 1 addition & 0 deletions library/config/.esim/workspace.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0 C:\Users\Dell\eSim-Workspace
19 changes: 19 additions & 0 deletions scratch3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import sys, base64
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtCore import QUrl

app = QApplication(sys.argv)
from src.frontEnd.Chatbot import ChatbotGUI

gui = ChatbotGUI()

img_key = "test_key"
with open("images/chatbot.png", "rb") as f:
raw = f.read()
b64 = base64.b64encode(raw).decode('utf-8')
gui._images_store = {img_key: [("chatbot.png", b64)]}

url = QUrl(f"imageview://{img_key}/0")
print("Emitting link click...")
gui._handle_link_click(url)
print("Done!")
8 changes: 1 addition & 7 deletions src/chatbot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@
eSim Chatbot Package
"""

from .chatbot_core import handle_input, ESIMCopilotWrapper, analyze_schematic

__all__ = [
'handle_input',
'ESIMCopilotWrapper',
'analyze_schematic'
]
__all__ = []
Loading