Modenno commited on
Commit
68fa2ca
·
1 Parent(s): 4b1b07b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -1,6 +1,5 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
- from icecream import ic
4
 
5
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
6
 
@@ -11,7 +10,6 @@ def format_prompt(message):
11
  def generate(
12
  prompt,history = [], temperature=0.2, max_new_tokens=8192, top_p=0.95, repetition_penalty=1.0,
13
  ):
14
- ic()
15
  temperature = float(temperature)
16
  if temperature < 1e-2:
17
  temperature = 1e-2
@@ -27,7 +25,6 @@ def generate(
27
  )
28
 
29
  formatted_prompt = format_prompt(prompt)
30
- ic(formatted_prompt)
31
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
32
  output = ""
33
 
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
 
3
 
4
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
5
 
 
10
  def generate(
11
  prompt,history = [], temperature=0.2, max_new_tokens=8192, top_p=0.95, repetition_penalty=1.0,
12
  ):
 
13
  temperature = float(temperature)
14
  if temperature < 1e-2:
15
  temperature = 1e-2
 
25
  )
26
 
27
  formatted_prompt = format_prompt(prompt)
 
28
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
29
  output = ""
30