Update app_myQ2.py
Browse files- app_myQ2.py +38 -106
app_myQ2.py
CHANGED
@@ -26,96 +26,20 @@ txt_prompt_1 = """
|
|
26 |
txt_display_1 = 'content of the letter: '
|
27 |
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
-Daily Planning for CEA Assembly Lines Material Flow: Oversaw the flow of materials within CEA,
|
41 |
-
encompassing electronic parts, tubes, ablation tips, balloon crowns, needles, wires, bonding chemicals,
|
42 |
-
temperature-sensitive elements, gas tanks, tool kits, and MROs.
|
43 |
-
-Material Transfer Responsibilities: Involved in the picking and transfer of materials between locations.
|
44 |
-
Conducted examinations of UDI and checked validity before release, collaborating with the QA department on
|
45 |
-
Non-Conformance Reports (NCRs).
|
46 |
-
-Line Production Works & Microscopic Soldering Tasks: Assigned to assist in the soldering works for the
|
47 |
-
production lines of mapper-catheters. The assignment involves using a microscope for hand-soldering
|
48 |
-
connectors to the unit base.
|
49 |
-
-Warehousing and Inventory Duties: Engaged in the stocking of approximately 800 parts/components and
|
50 |
-
recorded data in the QAD Inventory system. Managed inventory cycle counts, conducted book-physical audit
|
51 |
-
counts, and took part in variance analyses.
|
52 |
-
-Disposition of HazMat/Scraps: Handled downstream NCR disposition (scrap, rework, return or disposition).
|
53 |
-
Disposed in-field HazWaste. Assisted ISO sterilization in CEA or CMA zone.
|
54 |
-
-Shipping and Receiving Support: Subbed in for receiving and shipping tasks. Receiving functions included
|
55 |
-
checking shipment documents, initiating QAD receipt, and notifying related parties for downstream processes.
|
56 |
-
Shipping involved using FedEx or UPS for domestic or international shipments.
|
57 |
-
-Process Improvements: revamped the Kanban system, and participated in a smart cam project (a tablet UDI
|
58 |
-
tags reader APP).
|
59 |
-
Function-specific Proficiencies:
|
60 |
-
● QMS 21 CFR (820 803) and ISO 13485
|
61 |
-
● cGMP, GLP and good documentation practices
|
62 |
-
● Nonconforming Material Reporting (NCMR)
|
63 |
-
● Corrective Action Preventive Action (CAPA)
|
64 |
-
● Unique Device Identification (UDI)
|
65 |
-
● OpenFDA surveillance/MAUDE (complaints, adverse events, and malfunctions)
|
66 |
-
● Stock-out Alert/Visualization
|
67 |
-
● QAD-ERP and ACSM initiatives (Azure Cloud Solutions for Manufacturing)
|
68 |
-
● Basic lab skills
|
69 |
-
|
70 |
-
Lab Assembly Specialist, Xenowise BioLab, Suzhou, China (2017-2019)
|
71 |
-
Worked closely with technicians and scientists to establish Patient-Derived Xenograft (PDX) models for drug screening,
|
72 |
-
CRO candidate screening, and other preclinical pilot-trial studies. My role centered around coordinating processes,
|
73 |
-
contributing to lab setup, SOP development, and equipment acquisition.
|
74 |
-
|
75 |
-
Trainer, Consultant (2000-2015)
|
76 |
-
Clients: Pfizer, Roche, AstraZeneca (Beijing and Shanghai)
|
77 |
-
Scope of Work: training courses, and strategy service. Also provide Web-Based Training (WBT) programs covering
|
78 |
-
regulatory compliance, foundational knowledge, product information, and job-specific skills.
|
79 |
-
Business Manager, Philogenesis, Inc. (1996-1999, Monrovia, California)
|
80 |
-
Spearheaded the development and execution of comprehensive marketing strategies to enhance awareness, drive
|
81 |
-
adoption, and increase market penetration of biomaterial-based blood vessels for Coronary Artery Bypass Grafting
|
82 |
-
(CABG) procedures.
|
83 |
-
|
84 |
-
General Manager, BioMax, Inc. (1993-1996, Monrovia, California)
|
85 |
-
Oversaw day-to-day operations of the company, focusing on expanding market presence for medical-grade
|
86 |
-
lyophilized hemostatic collagen patches.
|
87 |
-
|
88 |
-
|
89 |
-
** example Job Post
|
90 |
-
|
91 |
-
Fill tablet, bottle, desiccant and closure hoppers. Hand count product using counting trays.
|
92 |
-
Manufacturing responsibilities include de-inking product, tablet breaking, product placement into oversized capsules and capsule inspection.
|
93 |
-
Inspect bottles for misalign closures, print registration and missing print copy, inspect seal integrity of pouch, print registration and missing print copy, inspect blister units and place them into properly assigned card locations for multi-fill operations; inspect blister cavities for missing product, burnt product, holes in foil, print registration, missing print, crushed blisters and seal integrity.
|
94 |
-
Responsible for cleaning machine equipment and production rooms as stated in cleaning SOP’s (Standard Operating Procedure). Fill in all appropriate information in the cleaning logbooks as well as responsible for cleaning production rooms with three bucket sponge mop cleaning system which includes ceilings, walls and floors.
|
95 |
-
When working on look-alike products you are only allowed to work with your assigned product. Multi-fill projects require that employees do not touch or help out other employees that are assigned different products.
|
96 |
-
All clinical labels must be inspected and require a 100% accountability. Clinical labels can be either manually or automatically applied.
|
97 |
-
Sealed clinical cards must be inspected for missing copy, poor seal, smudges and dirt, misalign blister units and burnt product.
|
98 |
-
Inspection required for vials, ampoules and syringes utilizing black and white light boxes.
|
99 |
-
Cold storage packaging will also be required working with cold product both outside and inside refrigeration conditions.
|
100 |
-
Assembly work required which may include utilizing barcode scanning equipment and computers.
|
101 |
-
Other duties as assigned
|
102 |
-
|
103 |
-
** example Quali Metrics
|
104 |
-
|
105 |
-
| Seq | Tasks | Descriptions | My Credential | Note |
|
106 |
-
|-----|---------------|-----------------------------------------------------------------------------------------------|--------------------------------------|--------------------|
|
107 |
-
| 1 | Filling | Fill tablet, bottle, desiccant, and closure hoppers. Hand count product using counting trays. | 5+ years experience in picking and filling at medical device assembly line | |
|
108 |
-
| 2 | Manufacturing | De-ink product, tablet breaking, place product into oversized capsules, and inspect capsules. | 10+ years experience in Acutus and Xenowise assembly works | |
|
109 |
-
| 3 | Inspection | Inspect bottles, pouch seals, blister units, blister cavities, clinical labels, and sealed cards. | 2+ years experience in GMP facility maintenance | |
|
110 |
-
| 4 | Cleaning | Clean machine equipment, production rooms, and fill in cleaning logbooks. | 5+ years experience in ISO 13485 QA proficiency | |
|
111 |
-
| 5 | Specialist | Work exclusively with assigned product, inspect clinical labels, and utilize black and white light boxes. | 10+ years adaptive experience at new assignments and new training | |
|
112 |
-
| 6 | Assembly | Perform assembly work, utilize barcode scanning equipment, and computers. | 5+ years experience familiar with various assembly responsibilities | |
|
113 |
-
| 7 | Other | Cold storage packaging, working with cold products, and other duties as assigned. | Seasoned experience with abundant experience | |
|
114 |
-
|
115 |
-
below are content of Tasks and Descriptions:
|
116 |
|
117 |
"""
|
118 |
-
|
119 |
|
120 |
import os
|
121 |
GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
|
@@ -132,11 +56,15 @@ def image_to_base64(image_path):
|
|
132 |
|
133 |
|
134 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
|
|
|
|
|
|
|
|
135 |
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
|
141 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
142 |
def app1_response(img):
|
@@ -173,11 +101,11 @@ def send_SMS(resp_text):
|
|
173 |
with gr.Blocks() as app1:
|
174 |
with gr.Column():
|
175 |
gr.Markdown("## 🥷 FoodCAM ##")
|
176 |
-
gr.Markdown("```for
|
177 |
-
image_box = gr.Image(label="✂
|
178 |
-
btn1 = gr.Button("Generate
|
179 |
out1 = gr.Textbox(label="here are the actionables...")
|
180 |
-
btn2 = gr.Button("(disabled)
|
181 |
out2 = gr.Textbox(label="(disabled) no message been sent, this is just a mockup confirmation...")
|
182 |
|
183 |
btn1.click(fn=app1_response, inputs=[image_box], outputs=out1)
|
@@ -195,18 +123,22 @@ with gr.Blocks() as app1:
|
|
195 |
os.path.join(os.path.dirname(__file__), "images/missionemail.png"),
|
196 |
],
|
197 |
|
198 |
-
with gr.Blocks() as
|
199 |
with gr.Column():
|
200 |
-
gr.Markdown("## ↗️
|
201 |
-
gr.Markdown("```
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
206 |
|
207 |
|
208 |
gr.Markdown("""
|
209 |
-
#
|
210 |
|
211 |
- screen capture (Win + shift + S)
|
212 |
- use MD editor below
|
@@ -222,8 +154,8 @@ with gr.Blocks() as app_quali:
|
|
222 |
|
223 |
|
224 |
with gr.Blocks() as demo:
|
225 |
-
gr.Markdown("##
|
226 |
-
gr.TabbedInterface([
|
227 |
|
228 |
demo.queue()
|
229 |
demo.launch()
|
|
|
26 |
txt_display_1 = 'content of the letter: '
|
27 |
|
28 |
|
29 |
+
txt_prompt_selfie = """
|
30 |
+
以照片中的主体人物与背景做为对象,分别对人物与背景分别做出评语,对人物做出3个评语,对背景也做出3个评语。这些评语必须是轻松诙谐的用词与内容。
|
31 |
+
|
32 |
+
** 人物评语
|
33 |
+
|
34 |
+
| 序号 | 特征 | 评语
|
35 |
+
|-----|--------------|-----------------------------------------------------------------------------
|
36 |
+
|
37 |
+
** 背景评语
|
38 |
+
| 序号 | 特征 | 评语
|
39 |
+
|-----|--------------|-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
"""
|
42 |
+
txt_display_selfie = '--- '
|
43 |
|
44 |
import os
|
45 |
GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
|
|
|
56 |
|
57 |
|
58 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
59 |
+
def selfie_response(img):
|
60 |
+
if not img:
|
61 |
+
response = txt_model.generate_content(txt_prompt_selfie)
|
62 |
+
return response
|
63 |
|
64 |
+
else:
|
65 |
+
img = PIL.Image.open(img)
|
66 |
+
response = vis_model.generate_content([txt_prompt_selfie,img])
|
67 |
+
return response.text
|
68 |
|
69 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
70 |
def app1_response(img):
|
|
|
101 |
with gr.Blocks() as app1:
|
102 |
with gr.Column():
|
103 |
gr.Markdown("## 🥷 FoodCAM ##")
|
104 |
+
gr.Markdown("```for xxxxxx ✉ and/or xxx ⌦, include photo here...```")
|
105 |
+
image_box = gr.Image(label="✂ 拍照餐盘", type="filepath")
|
106 |
+
btn1 = gr.Button("Generate Nutritioins Table ☑")
|
107 |
out1 = gr.Textbox(label="here are the actionables...")
|
108 |
+
btn2 = gr.Button("(disabled)发短信 ↗️")
|
109 |
out2 = gr.Textbox(label="(disabled) no message been sent, this is just a mockup confirmation...")
|
110 |
|
111 |
btn1.click(fn=app1_response, inputs=[image_box], outputs=out1)
|
|
|
123 |
os.path.join(os.path.dirname(__file__), "images/missionemail.png"),
|
124 |
],
|
125 |
|
126 |
+
with gr.Blocks() as app_selfie:
|
127 |
with gr.Column():
|
128 |
+
gr.Markdown("## ↗️ 与乐意保合拍 ##")
|
129 |
+
gr.Markdown("```xxxx ⌦, paste screenshot here...```")
|
130 |
+
image_box = gr.Image(label="✂ 乐意保墙", type="filepath")
|
131 |
+
btn_selfie1 = gr.Button("生成点评 ☑")
|
132 |
+
out_selfife1 = gr.Textbox(label="here are the actionables...")
|
133 |
+
btn_selfie2 = gr.Button("(disabled)发短信 ↗️")
|
134 |
+
out_selfife2 = gr.Textbox(label="(disabled) no message been sent, this is just a mockup confirmation...")
|
135 |
+
|
136 |
+
btn_selfie1.click(fn=selfie_response, inputs=[image_box], outputs=out_selfife1)
|
137 |
+
btn_selfie2.click(fn=send_SMS, inputs=out_selfife1, outputs=out_selfife2)
|
138 |
|
139 |
|
140 |
gr.Markdown("""
|
141 |
+
# ↗️ 与乐意保合拍 #
|
142 |
|
143 |
- screen capture (Win + shift + S)
|
144 |
- use MD editor below
|
|
|
154 |
|
155 |
|
156 |
with gr.Blocks() as demo:
|
157 |
+
gr.Markdown("## Logo Selfie w 乐意保 ↗️ + FoodCAM 🥷 ##")
|
158 |
+
gr.TabbedInterface([app_selfie, app1], ["➀ 合拍乐意保", "➁ FoodCAM"])
|
159 |
|
160 |
demo.queue()
|
161 |
demo.launch()
|