futosane commited on
Commit
ad07f9c
·
1 Parent(s): 7465324

Update space

Browse files
Files changed (2) hide show
  1. app.py +8 -1
  2. requirements.txt +3 -2
app.py CHANGED
@@ -97,7 +97,14 @@ import gradio as gr
97
  # # `model.generate` 并设置 `stream=True`
98
  # yield response
99
 
100
- def respond():
 
 
 
 
 
 
 
101
  return "this is a test response."
102
 
103
  # --- Gradio 界面部分保持不变 ---
 
97
  # # `model.generate` 并设置 `stream=True`
98
  # yield response
99
 
100
+ def respondrespond(
101
+ message,
102
+ history,
103
+ system_message,
104
+ max_tokens,
105
+ temperature,
106
+ top_p,
107
+ ):
108
  return "this is a test response."
109
 
110
  # --- Gradio 界面部分保持不变 ---
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  huggingface_hub==0.25.2
2
- transformers
3
- torch
 
 
1
  huggingface_hub==0.25.2
2
+ # transformers
3
+ # torch
4
+ # peft