Trickshotblaster commited on
Commit
4aec55c
·
1 Parent(s): 6c242fa
Files changed (2) hide show
  1. __pycache__/gpt.cpython-310.pyc +0 -0
  2. app.py +2 -18
__pycache__/gpt.cpython-310.pyc ADDED
Binary file (5.27 kB). View file
 
app.py CHANGED
@@ -8,10 +8,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
 
10
  def respond(
11
- message,
12
- max_tokens,
13
- temperature,
14
- top_p,
15
  ):
16
  return gpt.get_response(message)
17
 
@@ -19,20 +16,7 @@ def respond(
19
  """
20
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
21
  """
22
- demo = gr.Interface(
23
- respond,
24
- additional_inputs=[
25
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
26
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
27
- gr.Slider(
28
- minimum=0.1,
29
- maximum=1.0,
30
- value=0.95,
31
- step=0.05,
32
- label="Top-p (nucleus sampling)",
33
- ),
34
- ],
35
- )
36
 
37
 
38
  if __name__ == "__main__":
 
8
 
9
 
10
  def respond(
11
+ message
 
 
 
12
  ):
13
  return gpt.get_response(message)
14
 
 
16
  """
17
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
18
  """
19
+ demo = gr.Interface(fn=respond, inputs="textbox", outputs="textbox")
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
 
22
  if __name__ == "__main__":