Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def chat(message, history):
|
|
27 |
add_generation_prompt=True
|
28 |
)
|
29 |
|
30 |
-
|
31 |
-
model_inputs = tokenizer([text], return_tensors="pt")
|
32 |
streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
|
33 |
generate_kwargs = dict(
|
34 |
model_inputs,
|
@@ -105,7 +105,7 @@ with gr.Blocks(css=custom_css,title='我的履歷') as resume_app:# title可以
|
|
105 |
with gr.Tab("履歷資料",elem_classes="content"):
|
106 |
with gr.Row():
|
107 |
with gr.Column(scale=1):
|
108 |
-
gr.Image('履歷資料/頭貼.jpg', elem_classes="profile-pic")
|
109 |
gr.Markdown("""
|
110 |
<div style="text-align:center;">
|
111 |
<p style="margin-bottom: 0;">
|
|
|
27 |
add_generation_prompt=True
|
28 |
)
|
29 |
|
30 |
+
model_inputs = tokenizer([text], return_tensors="pt").to("cuda")
|
31 |
+
# model_inputs = tokenizer([text], return_tensors="pt")
|
32 |
streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
|
33 |
generate_kwargs = dict(
|
34 |
model_inputs,
|
|
|
105 |
with gr.Tab("履歷資料",elem_classes="content"):
|
106 |
with gr.Row():
|
107 |
with gr.Column(scale=1):
|
108 |
+
gr.Image('履歷資料/頭貼.jpg', elem_classes="profile-pic",show_label=False)
|
109 |
gr.Markdown("""
|
110 |
<div style="text-align:center;">
|
111 |
<p style="margin-bottom: 0;">
|