johann22 commited on
Commit
05e56df
1 Parent(s): 62cde7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
- import random.randint as rand
4
  import prompts
5
  client = InferenceClient(
6
  "mistralai/Mixtral-8x7B-Instruct-v0.1"
@@ -21,7 +21,7 @@ agents =[
21
  def generate(
22
  prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
23
  ):
24
- seed = rand(1,1111111111111111)
25
 
26
  agent=prompts.WEB_DEV
27
  if agent_name == "WEB_DEV":
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
+ import random
4
  import prompts
5
  client = InferenceClient(
6
  "mistralai/Mixtral-8x7B-Instruct-v0.1"
 
21
  def generate(
22
  prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
23
  ):
24
+ seed = random.randint(1,1111111111111111)
25
 
26
  agent=prompts.WEB_DEV
27
  if agent_name == "WEB_DEV":