KaiShin1885 commited on
Commit
712152e
·
verified ·
1 Parent(s): b70e241

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import gradio as gr
3
  from huggingfacehub import InferenceClient
4
  import os
@@ -8,8 +7,8 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv
8
  def respond(
9
  message,
10
  history: list[tuple[str, str]],
11
- systemmessage,
12
- maxtokens,
13
  temperature,
14
  top_p,
15
  ):
@@ -53,5 +52,5 @@ demo = gr.ChatInterface(
53
  ],
54
  )
55
 
56
- if __name == "__main":
57
  demo.launch()
 
 
1
  import gradio as gr
2
  from huggingfacehub import InferenceClient
3
  import os
 
7
  def respond(
8
  message,
9
  history: list[tuple[str, str]],
10
+ system_message,
11
+ max_tokens,
12
  temperature,
13
  top_p,
14
  ):
 
52
  ],
53
  )
54
 
55
+ if __name__ == "__main__":
56
  demo.launch()