srcrszhu commited on
Commit
d0be24d
1 Parent(s): 2655bbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -1,14 +1,6 @@
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
- from transformers import pipeline
5
-
6
- messages = [
7
- {"role": "user", "content": "Who are you?"},
8
- ]
9
- pipe = pipeline("text-generation", model="Qwen/Qwen2.5-7B-Instruct")
10
- pipe(messages)
11
-
12
  # 模型和分词器的名称
13
  model_name = "Qwen/Qwen2.5-7B-Instruct"
14
 
 
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
 
 
 
 
 
 
 
 
4
  # 模型和分词器的名称
5
  model_name = "Qwen/Qwen2.5-7B-Instruct"
6